Skip to contents

A graph with no edges

Usage

make_empty_graph(n = 0, directed = TRUE)

empty_graph(n = 0, directed = TRUE)

Arguments

n

Number of vertices.

directed

Whether to create a directed graph.

Value

An igraph graph.

empty()

Examples

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