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

Confusing code #37

Open
hxtruong6 opened this issue Jun 17, 2020 · 0 comments
Open

Confusing code #37

hxtruong6 opened this issue Jun 17, 2020 · 0 comments

Comments

@hxtruong6
Copy link

Hi, I am trying to re-implement SDNE code but I got stuck when reading code. Could you explain for me these below lines:
-

edge_weight = graph[v1][v2].get('weight', 1)
: what is meaning of get('weight',1). Why does it has 1 value here?

Thank your helping!

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