Connected subgraphs, matching, and partitions | Synapse