def subgraph(self, idx):
    "Get the subgraph belonging to a given cluster.\n\n        @param idx: the cluster index\n        @return: a copy of the subgraph\n        @precondition: the vertex set of the graph hasn't been modified since\n          the moment the clustering was constructed.\n        "
    return self._graph.subgraph(self[idx])
Get the subgraph belonging to a given cluster.

@param idx: the cluster index
@return: a copy of the subgraph
@precondition: the vertex set of the graph hasn't been modified since
  the moment the clustering was constructed.
def subgraph(self, idx):
    "Get the subgraph belonging to a given cluster.\n\n        @param idx: the cluster index\n        @return: a copy of the subgraph\n        @precondition: the vertex set of the graph hasn't been modified since\n          the moment the clustering was constructed.\n        "
    return self._graph.subgraph(self[idx])