Skip to content

sugiyama layout making up vertices #829

Open
@iosonofabio

Description

@iosonofabio

Describe the bug
Sugiyama layout seems to have more coordinates than vertices, with the top ones being the actual good coords.

To reproduce

import random; import igraph as ig
random.seed(0)
g = ig.Graph.Erdos_Renyi(n=15, m=30, directed=False, loops=False)
g.to_directed(mode="acyclic")
g.vcount() -> 15
len(g.layout("sugiyama")) -> 35

This is from our own example ;-)

Not sure why this happens and how on Earth we did not notice before. I suspect our plotting infra has some filtering on singletons or some unwanted magic that hides this issue.

Unsure whether this would be C core or python interface.

Version information
0.11.8 from pip.

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