NodeGroups # Bases: object __bool__() # True if self else False __getitem__(key) # Return self[key]. __iter__() # Implement iter(self). __len__() # Return len(self). group(index) # Get group nodes and value Parameters: Name Type Description Default index int the group index required Returns: Type Description Tuple[Any, Nodes] Nodes and corresponding value group_subgraph(index) # Get group as subgraph Parameters: Name Type Description Default index int the group index required Returns: Type Description Tuple[Any, GraphView] The group as a subgraph and corresponding value iter_subgraphs() # Iterate over group subgraphs Returns: Type Description Iterator[Tuple[Any, GraphView]] Iterator over subgraphs with corresponding value