Learn R Programming

igraph (version 1.2.11)

is_igraph: Is this object an igraph graph?

Description

Is this object an igraph graph?

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
# NOT RUN {
g <- make_ring(10)
is_igraph(g)
is_igraph(numeric(10))
# }

Run the code above in your browser using DataLab