Replies: 1 comment
-
Hi! Sorry for the late answer. Can you show the code where you define the weight attribute? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I'm trying to use a weighted network to model disease spread, however, I can't find any relevant examples.
for example, I am using the code below but I am getting an error:
here, I use this code
self.network[self][n]['weight']
to get the weight on this edge (this node to its neighbor n), but it doesn't work, how can I get the weight?Thanks in advance for any advice!
Beta Was this translation helpful? Give feedback.
All reactions