A graph with no edges

make_empty_graph(n = 0, directed = TRUE)

empty_graph(...)

Arguments

n

Number of vertices.

directed

Whether to create a directed graph.

...

Passed to make_graph_empty.

Value

An igraph graph.

Examples

make_empty_graph(n = 10)
#> IGRAPH d64200b D--- 10 0 -- 
#> + edges from d64200b:
make_empty_graph(n = 5, directed = FALSE)
#> IGRAPH 133fa04 U--- 5 0 -- 
#> + edges from 133fa04: