KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In a multigraph each call to *add_edge(a,b,weight=1)* will add a new edge between nodes a and b . When building the graph, is it possible to modify this weight when a and b are found again. Right now I make a check to find whether (a, b) or (b, a) are connected, then have to delete the edge, and add a new one. It seems to me that I should simply be able to update the weight. Note: I do need multigraphs because I use different types of edges between nodes (differentiated using key )
Tags (comma-separated)
Save Edits
Cancel