metis_clustering

metis_clustering(graph: TGraph, num_clusters)[source]

Implements clustering using metis

Parameters:
  • graph – input graph

  • num_clusters – number of cluster

Returns:

partition tensor

This uses the pymetis package

References