Am 10.04.20 um 18:51 schrieb Davide Cittaro: > Hello, > I'm trying to draw hierarchy from a NestedBlockState made like this > > <NestedBlockState object, with base <BlockState object with 2263 blocks (91 > nonempty), degree-corrected, for graph <Graph object, directed, with 8272 > vertices and 52548 edges, 1 internal vertex property, at 0x128d14110>, at > 0x13ffa8f10>, and 10 levels of sizes [(8272, 91), (91, 34), (34, 10), (10, > 3), (3, 2), (2, 1), (1, 1), (1, 1), (1, 1), (1, 1)] at 0x128cca590> > > when I run > > state.draw(output='foo.pdf') > > I obtain a picture with colored nodes on the outer circle, the hierarchy path > but no bezier curves for edges. I've tried to draw only levels > 0 (so 91 > nodes here) and it works like in graph_tool documentation examples. In order > to draw edges I had to use gt.graph_draw passing edge_control_points (from > gt.get_hierarchy_control_points). Is there some threshold in > gt.draw_hierarchy that sets edge visibility if over/under a certain number of > blocks?
I can't reproduce this. Please provide an self-contained example that shows the problem. You can also provide the pickled NestedBlockState. > graph_tool 2.30 here Maybe try with the 2.31 version? Best, Tiago -- Tiago de Paula Peixoto <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
