igraph (version 0.5.5-4)

is.igraph: Is this object a graph?

Description

is.graph makes its decision based on the class attribute of the object.

Usage

is.igraph(graph)

Arguments

graph
An R object.

Value

  • A logical constant, TRUE if argument graph is a graph object.

Examples

Run this code
g <- graph.ring(10)
is.igraph(g)
is.igraph(numeric(10))

Run the code above in your browser using DataCamp Workspace