graph.empty: A graph with no edges

View source: R/make.R

graph.emptyR Documentation

A graph with no edges

Description

[Deprecated]

graph.empty() was renamed to make_empty_graph() to create a more consistent API.

Usage

graph.empty(n = 0, directed = TRUE)

Arguments

n

Number of vertices.

directed

Whether to create a directed graph.

Related documentation in the C library

empty()


igraph documentation built on May 4, 2026, 9:07 a.m.