void printClusters(infomap::HierarchicalNetwork& tree) { std::cout << "\nClusters:\n#originalIndex clusterIndex:\n"; for (infomap::LeafIterator leafIt(&tree.getRootNode()); !leafIt.isEnd(); ++leafIt) std::cout << leafIt->originalLeafIndex << " " << leafIt->parentNode->parentIndex << '\n'; }
void printClusters(infomap::HierarchicalNetwork & tree) { std::cout << "\nClusters:\n#physIndex clusterIndex:\n"; for (infomap::LeafIterator leafIt(&tree.getRootNode()); !leafIt.isEnd(); ++leafIt) { std::cout << leafIt->physIndex << " " << leafIt.moduleIndex() << '\n'; } }
void printTree(infomap::HierarchicalNetwork& tree) { std::cout << "\nResult tree:\n"; printTreeHelper(std::cout, tree.getRootNode()); }