Skip to content

The nodes of tree are overlap when plot a tree. Maybe a bug when plot compex trees. #186

@yizhichun

Description

@yizhichun
  • This issue is for the Python interface of igraph.
  • This issue is a bug report or a feature request, not a support question.

igraph_bug2

The nodes of tree are overlap when plot a complex tree, as shown in attached figure.
May be has a bug.
My tree structure as following:

edges = 
[(0, 1), (1, 2), (2, 3), (3, 4), (3, 5), (2, 6), (6, 7), (6, 8), (8, 9), (9, 10), (8, 11), (11, 12), (8, 13), (6, 14), (14, 15), (14, 16), (14, 17), (14, 18), (1, 19), (19, 20), (20, 21), (20, 22), (22, 23), (22, 24), (22, 25), (20, 26), (26, 27), (27, 28), (27, 29), (27, 30), (26, 31), (26, 32), (32, 33), (32, 34), (26, 35), (35, 36), (35, 37), (1, 38), (38, 39), (38, 40), (38, 41), (41, 42), (41, 43), (1, 44), (44, 45), (45, 46), (45, 47), (47, 48), (48, 49), (47, 50), (50, 51), (47, 52), (52, 53), (44, 54), (54, 55), (54, 56), (56, 57), (57, 58), (58, 59), (58, 60), (57, 61), (56, 62), (56, 63), (63, 64), (44, 65), (65, 66), (66, 67), (66, 68), (68, 69), (65, 70), (65, 71), (71, 72), (72, 73), (65, 74), (65, 75), (75, 76), (75, 77)]

The plot codes as following:

from igraph import *
tree = Graph(edges = edges)
plot(tree,layout = tree.layout_reingold_tilford(root=[0]))

How to fix this, thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions