Learn R Programming

igraph (version 1.3.5)

is_igraph: Is this object an igraph graph?

Description

Is this object an igraph graph?

Usage

is_igraph(graph)

Value

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

Arguments

graph

An R object.

Author

Gabor Csardi csardi.gabor@gmail.com

Examples

Run this code

g <- make_ring(10)
is_igraph(g)
is_igraph(numeric(10))

Run the code above in your browser using DataLab