isgraph#
- er_evaluation.isgraph(obj)[source]#
Check if given object is an iGraph
Graph.- Graph:
A graph is an igraph
Graphobject with vertices representing clustering elements and with edges between all elements belonging to the same cluster. Note that clusters are unnamed in graphs. Example:1───2 4 │ │ │ 6 └─3─┘ 5
- Returns:
True if Graph, False otherwise.
- Return type:
bool
Examples
>>> import igraph >>> g = igraph.Graph() >>> isgraph(g) True