Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We no need to add vertex if it exists #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

3xh4l3
Copy link

@3xh4l3 3xh4l3 commented Jul 20, 2023

If we have already added vertex earlier, no need to add it again. Moreover it breaks drawio graph.

Before

After

@lautriv
Copy link

lautriv commented Feb 5, 2024

I was just about to open a PR for this exact issue and am bummed I didn't think to check sooner! I've been convinced that all of the layout algorithms in igraph are garbage because it seems like no matter what I did to my DrawIO diagram they never looked good. As another user of this library I would love to see this PR merged.

@dmulyalin
Copy link
Owner

Hello, was trying to reproduce the problem using from_dict method, but no luck, not seeing nodes added twice. N2G attempts to deduplicate nodes/links when they are loaded into the diagram, by the time igraph layout method called, there are should be no duplicate nodes or links present, so, what are you doing to reproduce the problem? @lautriv @3xh4l3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants