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

Nodes with same label are merged under dot-str? #86

Open
boyentenbi opened this issue Jun 27, 2016 · 0 comments
Open

Nodes with same label are merged under dot-str? #86

boyentenbi opened this issue Jun 27, 2016 · 0 comments

Comments

@boyentenbi
Copy link

boyentenbi commented Jun 27, 2016

Hi all,

Every method I've tried for labelling distinct nodes with the same string makes dot-str return them as merged!

It may be that I've misunderstood terms and have hence implemented wrongly, but here is a simple way to reproduce the issue:

(def g (digraph [2 1] [3 1])) ;; graph looks like this 2 -> 1 <- 3
(def g-labelled (-> g
                    (add-label 2 "label")
                    (add-label 3 "label")))
(dot-str g-labelled)
(view g-labelled)

This produces the very strange DOT text:

digraph "graph" {
"mylabel" -> "1"
"mylabel" -> "1"
"1"
"mylabel" ["label"="mylabel"]
"mylabel" ["label"="mylabel"]
}

Please let me know if I'm doing something wrong; otherwise I'll dip into the source and see if I can fix this.

Cheers

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

1 participant