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

Is there a way to tell this library to ignore duplicate edges? #13

Closed
shobhitg opened this issue Oct 3, 2012 · 3 comments
Closed

Is there a way to tell this library to ignore duplicate edges? #13

shobhitg opened this issue Oct 3, 2012 · 3 comments

Comments

@shobhitg
Copy link

shobhitg commented Oct 3, 2012

I have some code which ends up creating duplicate edges because I can't figure out how to check if an exact same edge already exists.

Is there a way by which I can tell this library to simply ignore duplicate edges?

@shobhitg
Copy link
Author

shobhitg commented Oct 3, 2012

To demonstrate the issue, I am attaching this output image:

output image

Its not hard to do book-keeping of what edges are already set, but it would dirty down the client code.
It would be awesome if the library could do book-keeping and either expose methods to query edges OR just simply provide an option to ignore duplicate edges.

@byron-hawkins
Copy link

I'm not familiar with this library, but the underlying graphviz app allows a keyword "strict" that allows at most one edge between any two nodes (in each direction). The keyword goes before "digraph", so it's "strict digraph { ... }" If node-graphviz doesn't have "strict", it's probably easy to add, since it must be generating graphviz source at some point.

@tolotrasamuel
Copy link

How to make graph strict ?

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

No branches or pull requests

3 participants