Skip to contents

A graph with no edges

Usage

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.

igraph_empty().

Examples

make_empty_graph(n = 10)
#> IGRAPH 6a1a04d D--- 10 0 -- 
#> + edges from 6a1a04d:
make_empty_graph(n = 5, directed = FALSE)
#> IGRAPH 880c63b U--- 5 0 -- 
#> + edges from 880c63b: