- is_partition(G, communities)#
Returns True if
communitiesis a partition of the nodes of
A partition of a universe set is a family of pairwise disjoint sets whose union is the entire universe set.
- GNetworkX graph.
- communitieslist or iterable of sets of nodes
If not a list, the iterable is converted internally to a list. If it is an iterator it is exhausted.