UndiGraph.empty

UndiGraph.empty()

Check if the graph is empty.

Returns:

True if the graph is empty

Return type:

bool

Example

import pyagrum as gum

g = gum.UndiGraph()
g.empty()
# True
g.addNode()
# 0
g.empty()
# False

Used by

UndiGraph, CliqueGraph

Inheritance diagram of pyagrum.UndiGraph, pyagrum.CliqueGraph

Overridden in

MixedGraph.empty, PDAG.empty