You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which is probably closer to what you want. I think the way forward with this issue is to have a better example on the documentation itself.
Also, this decision may seem not the best when the node weights are strings. But it makes sense for general Python objects, I don't think anyone would like a JSON with {data: "<object object at 0x7fdbbeb78740>"} by default.
Information
rustworkx-0.15.1-cp38-abi3-win_amd64
Python 3.11.9
N/A
Windows 10 64 bit
What is the current behavior?
It returns a JSON string with
null
for thedata
field:What is the expected behavior?
I should see somthing like
[{"id":0,"data":"A"}
Steps to reproduce the problem
This uses the quickstart example:
I wasn't sure if I was supposed to pass anything to
node_attrs
oredge_attrs
. ThanksThe text was updated successfully, but these errors were encountered: