Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

network.initialize

Initialize a Network Class Object


Description

Create and initialize a network object with n vertices.

Usage

network.initialize(n, directed = TRUE, hyper = FALSE, loops = FALSE,
  multiple = FALSE, bipartite = FALSE)

Arguments

n

the number of vertices to initialize

directed

logical; should edges be interpreted as directed?

hyper

logical; are hyperedges allowed?

loops

logical; should loops be allowed?

multiple

logical; are multiplex edges allowed?

bipartite

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.

Details

Generally, network.initialize is called by other constructor functions as part of the process of creating a network.

Value

An object of class network

Author(s)

Carter T. Butts buttsc@uci.edu

References

Butts, C. T. (2008). “network: a Package for Managing Relational Data in R.” Journal of Statistical Software, 24(2). https://www.jstatsoft.org/v24/i02/

See Also

Examples

g<-network.initialize(5)  #Create an empty graph on 5 vertices

network

Classes for Relational Data

v1.16.1
GPL (>= 2)
Authors
Carter T. Butts [aut, cre], David Hunter [ctb], Mark Handcock [ctb], Skye Bender-deMoll [ctb], Jeffrey Horner [ctb], Li Wang [ctb]
Initial release
2020-10-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.