make_empty_graph: A graph with no edges

View source: R/make.R

make_empty_graphR Documentation

A graph with no edges

Description

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.

Related documentation in the C library

empty()

See Also

Other deterministic constructors: graph_from_atlas(), graph_from_edgelist(), graph_from_literal(), make_(), make_chordal_ring(), make_circulant(), make_full_citation_graph(), make_full_graph(), make_full_multipartite(), make_graph(), make_lattice(), make_ring(), make_star(), make_tree(), make_turan(), make_wheel()

Examples

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

igraph documentation built on April 21, 2026, 5:06 p.m.