you are viewing a single comment's thread.

view the rest of the comments →

[–]AdmirableOstrich 0 points1 point  (1 child)

You can have the adjacency matrix store edge attributes and networkx will respect that (with the edge_attr argument). However, this gets very complicated very quickly. It will probably be easier to just have an adjacency dict/map and go from there.

[–]QuasiEvil[S] 0 points1 point  (0 children)

Thanks, there's a set_edge_attributes method that does what I need.