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

Self loop #1

Open
gitbestsou opened this issue Jan 30, 2019 · 1 comment
Open

Self loop #1

gitbestsou opened this issue Jan 30, 2019 · 1 comment

Comments

@gitbestsou
Copy link

Can there be more than one edge between two nodes in this example?

@ubi15
Copy link
Owner

ubi15 commented Jan 31, 2019

There is no limit on the number of edges between two nodes. However, they will be plotted equally so that they will be indistinguishable. If you want to implement it consider adding a check on the number of edges a control on the number of edges between two nodes Then cycle over the edges and for each of them pass to xy_edge(i,j,c,r) an optional offset argument like xy_edge(i,j,c,r, offset=.0): that you pass to the Vertex(p1,p2,c, offset=0) and add to m+direttrice*(offset + min_d+max_d*(1.-distanza(m,c)/distanza(c,p1))).

Hope this help.

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

2 participants