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

Minor error in edge indexes printing #9

Open
gautier-laurent opened this issue Mar 18, 2020 · 1 comment
Open

Minor error in edge indexes printing #9

gautier-laurent opened this issue Mar 18, 2020 · 1 comment
Labels

Comments

@gautier-laurent
Copy link

Hi,
I think there is a somewhat minor error in the entry [39].
The printed indexes are those of the previous cell, if I understood correctly.

This piece of code:

for (u, v, d) in FG.edges(data='weight'):
    if d < 0.5:
        print('(%d, %d, %.3f)'%(n, nbr, d))

should be:

for (u, v, d) in FG.edges(data='weight'):
    if d < 0.5:
        print('(%d, %d, %.3f)'%(u, v, d))

Thanks for the great tutorial.

Gautier

@dschult
Copy link
Member

dschult commented Mar 25, 2020

Yes, input 39 of the tutorial should indeed use (u, v, d).
Thanks very much!

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

No branches or pull requests

2 participants