Closed SnehalRaj closed 2 years ago
Yes, its a bit odd as it looks like forceatlas2_networkx_layout
should also support the weight_attr
arg:
But I have also run into this bug, and since the weights likely don't add much, probably easiest just to remove it.
Should be fixed by https://github.com/jcmgray/quimb/commit/08ab4805df6be023e1027503b8c0915e1bf50b34.
What happened?
I was working with the Sycamore Quantum Circuit example on Cotengra link and ran into this error while drawing the tensor network graph
Code
tn.graph(iterations=20, color=circ.psi.site_tags, legend=False, figsize=(3, 3))
ErrorI assume it is because the
forceatlas2_networkx_layout(G, pos, iterations)
doesn't take weight_attr as input?A quick look through forceatlas2 shows that
forceatlas2_igraph_layout(G, pos, iterations, weight_attr)
uses the 'weight_attr' argumentWhat did you expect to happen?
No response
Minimal Complete Verifiable Example
Relevant log output
No response
Anything else we need to know?
No response
Environment
Yes, quimb-1.4.0