Build an Example <network>

example_network(directed = FALSE, loops = FALSE)

Arguments

directed

logical(1L), default: FALSE

loops

logical(1L), default: FALSE

Examples

example_network()
#> Network attributes: #> vertices = 5 #> directed = FALSE #> hyper = FALSE #> loops = FALSE #> multiple = FALSE #> bipartite = FALSE #> total edges= 4 #> missing edges= 0 #> non-missing edges= 4 #> #> Vertex attribute names: #> color hetero_attr list_attr size vertex.names x y #> #> Edge attribute names: #> weight
example_network(directed = TRUE)
#> Network attributes: #> vertices = 5 #> directed = TRUE #> hyper = FALSE #> loops = FALSE #> multiple = FALSE #> bipartite = FALSE #> total edges= 12 #> missing edges= 0 #> non-missing edges= 12 #> #> Vertex attribute names: #> color hetero_attr list_attr size vertex.names x y #> #> Edge attribute names: #> weight
example_network(loops = TRUE)
#> Network attributes: #> vertices = 5 #> directed = FALSE #> hyper = FALSE #> loops = TRUE #> multiple = FALSE #> bipartite = FALSE #> total edges= 9 #> missing edges= 0 #> non-missing edges= 9 #> #> Vertex attribute names: #> color hetero_attr list_attr size vertex.names x y #> #> Edge attribute names: #> weight
example_network(directed = TRUE, loops = TRUE)
#> Network attributes: #> vertices = 5 #> directed = TRUE #> hyper = FALSE #> loops = TRUE #> multiple = FALSE #> bipartite = FALSE #> total edges= 17 #> missing edges= 0 #> non-missing edges= 17 #> #> Vertex attribute names: #> color hetero_attr list_attr size vertex.names x y #> #> Edge attribute names: #> weight