pathway.stdlib.graphs.utils package


pathway.stdlib.graphs.utils.extended_to_full_clustering(vertices, clustering)

This function, given a set of vertices and a partial clustering, i.e., a clustering in which not eery vertex has assigned a cluster, creates extended clustering in which those vertices are in singleton clusters.

The id of the new singleton cluster is the same as id of vertex

Submodules

pathway.stdlib.graphs.utils.clusters module


pathway.stdlib.graphs.utils.clusters.extended_to_full_clustering(vertices, clustering)

This function, given a set of vertices and a partial clustering, i.e., a clustering in which not eery vertex has assigned a cluster, creates extended clustering in which those vertices are in singleton clusters.

The id of the new singleton cluster is the same as id of vertex