network.initialize.RdCreate and initialize a network object with n vertices.
network.initialize(
n,
directed = TRUE,
hyper = FALSE,
loops = FALSE,
multiple = FALSE,
bipartite = FALSE
)the number of vertices to initialize
logical; should edges be interpreted as directed?
logical; are hyperedges allowed?
logical; should loops be allowed?
logical; are multiplex edges allowed?
count; should the network be interpreted as bipartite? If present (i.e., non-NULL) it is the count of the number of actors in the first mode of the bipartite network. In this case, the overall number of vertices is equal to the number of 'actors' (first mode) plus the number of `events' (second mode), with the vertex.ids of all actors preceeding all events. The edges are then interpreted as nondirected.
An object of class network
Generally, network.initialize is called by other constructor
functions as part of the process of creating a network.
Butts, C. T. (2008). “network: a Package for Managing Relational Data in R.” Journal of Statistical Software, 24(2). doi:10.18637/jss.v024.i02
g<-network.initialize(5) #Create an empty graph on 5 vertices