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

edgelabel values are changed #167

Open
teamclouday opened this issue Sep 3, 2021 · 0 comments
Open

edgelabel values are changed #167

teamclouday opened this issue Sep 3, 2021 · 0 comments

Comments

@teamclouday
Copy link

Hi, I'm using version v0.5.7 to plot a tree graph. And I find that if I set edgelabel, it will change the values inplace.
For example:

julia> g
5×5 Matrix{Int64}:
 0  1  0  0  1
 0  0  1  1  0
 0  0  0  0  0
 0  0  0  0  0
 0  0  0  0  0

julia> n
5-element Vector{String}:
 "A"
 "B"
 "-"
 "+"
 "-"

julia> e
Dict{Any, Any} with 1 entry:
  (1, 2) => "+"

After running graphplot, e's value is changed:

julia> graphplot(g, names=n, nodeshape=:circle, method=:tree, fontsize=15, edgelabel=e, curves=false)

julia> e
Dict{Any, Any} with 2 entries:
  (1, 2, 1) => "+"
  (1, 2)    => "+"

Is this expected?
I also experience the same issue as #155
Right now I have to use curves=false

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