NodeGroups#

class NodeGroups#

Bases: object

Methods:

group(index)

Get group nodes and value

group_subgraph(index)

Get group as subgraph

iter_subgraphs()

Iterate over group subgraphs

group(index)#

Get group nodes and value

Parameters:

index (int) – the group index

Returns:

Nodes and corresponding value

Return type:

Tuple[Any, Nodes]

group_subgraph(index)#

Get group as subgraph

Parameters:

index (int) – the group index

Returns:

The group as a subgraph and corresponding value

Return type:

Tuple[Any, GraphView]

iter_subgraphs()#

Iterate over group subgraphs

Returns:

Iterator over subgraphs with corresponding value

Return type:

Iterator[Tuple[Any, GraphView]]