def clusterFromFile(path): ct = ClusterTool() ct.loadGraph(path) ct.g.buildClusters() ct.saveClusters(path)