示例#1
0
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';
    }
}
示例#3
0
void printTree(infomap::HierarchicalNetwork& tree)
{
	std::cout << "\nResult tree:\n";
	printTreeHelper(std::cout, tree.getRootNode());
}