#Getting started with igraph package install.packages("igraph") library(igraph) ######################### # OBJECT OF CLASS GRAPH ######################### ######################### ### Creating from scratch using build-in fuctions #### 1. Deterministic Graph Generators #empty g <- graph.empty(n=10, directed=TRUE) # similar to network.initialize class(g) g<-graph.full(n=10, directed = FALSE, loops = FALSE) #Stars g<-graph.star(n=10, mode="out") g<-graph.star(n=10, mode="in") g<-graph.star(n=10, mode="mutual") g<-graph.star(n=10, mode="undirected") #Full Citation graph (i --> j only if j