Node ids are None when following readme
XertroV opened this issue · 1 comments
XertroV commented
The readme and examples use g.add_node(..)
instead of add_node(g, ..)
. Or at the very least it should specify that if you update the graph later you need to need to use that helper function.
Though IDK why it isn't implemented on Graph
, that would make more sense.
This isn't at all obvious is you are initializing an empty graph and building it from a live data source.
If you don't do this, you run into all kinds of issues like the .unwrap()
s in fn id()
s.
Might make some PRs