ISMAGS.create_aligned_partitions#

ISMAGS.create_aligned_partitions(thing_matcher, sg_things, g_things)[source]#

Partitions of “things” (nodes or edges) from subgraph and graph based on function thing_matcher.

Returns: sg_partition, g_partition, number_of_matched_parts

The first number_of_matched_parts parts in each partition match in order, e.g. 2nd part matches other’s 2nd part. Warning: nodes in parts after that have no matching nodes in the other graph. For morphisms those nodes can’t appear in the mapping.