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

make_empty_graph

A graph with no edges


Description

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.

See Also

Examples

make_empty_graph(n = 10)
make_empty_graph(n = 5, directed = FALSE)

igraph

Network Analysis and Visualization

v1.2.10
GPL (>= 2)
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

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