graphi.types.bounded module

class graphi.types.bounded.Bounded(*source, **kwargs)

Bases: graphi.abc.Graph

Wrapper to make the values of Graph instances bounded

Parameters:value_bound – bound for all values

The value_bound must be compatible with all values stored in the graph. A TypeError is raised whenever a value cannot be bounded. Note that None is always invalid for value_bound.

See also

The boundable() decorator for Graph classes.

clear()

Remove all elements from this graph

undirected
update(other)

Update the graph with the nodes, edges and values from other, overwriting existing elements.

Parameters:other (Graph or ItemView) – graph or items from which to pull elements