Check whether an R object is a graph object

is.graph(obj)

Arguments

obj

any object.

Value

TRUE if the object is of class graph, FALSE otherwise.