Am 25.02.20 um 18:21 schrieb Davide Cittaro: > Hi again, > How is it possible to return the hierarchy tree from a NestedBlockModel? I've > found that the gt.get_hierarchy_tree returns the tree as graph, but I > couldn't understand how to map partition names at each level n to the ones at > level n+1. Actually I'm doing this iteratively running > state.project_partition() and using crosstabs to do the matches, but I wonder > if there's a smarter way to proceed.
As the documentation of get_hierarchy_tree() states, it returns a vertex property map that maps the nodes of the tree to the group labels of every level. Best, Tiago -- Tiago de Paula Peixoto <[email protected]> _______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
