Dan Schult
Dan Schult
The default `pos` value is provided by `spring_layout`. It is highly unlikely that the layout you are seeing is created by `spring_layout`. Are you sure you don't have `pos` created...
No -- `nx.draw` just calls `pos = nx.spring_layout(G)`. But there is a random part of that function -- you should get a different layout each time you call `spring_layout` unless...
I can definitely see why the `NodeView`s are equal but the lists are not. The NodeViews compare to each other as sets. The order of nodes does not matter. But...
Thanks for this update -- I will need to dive deeper. I currently don't see how that could be happening. But that is true of many things. :)
If you have sortable nodes, you can use something like this to get a "sorted graph". Note that while node order is the order in which nodes are added, edge...
> Even if we change subgraph to use dict, if the caller passes an iterable of nodes with a different order than the underlying graph, then subgraph won't preserve the...
I'd rather keep the base class simple and let people know how to control the order of the nodes themselves. Also adding anything that feels like sorting nodes might lead...
Looks like the guts of the "copy" version of `relabel_nodes` and the "in-place" version th treatment of node attributes is subtly different. When copying, all nodes and attributes are copied...
Handling node attributes when merging multiple nodes into a single node when all the starting nodes have attribute values is tricky. I think it requires user input to determine how...
Thanks for this... It certainly shows a relationship between node order and these graph structure traits. The comparison doesn't seem quite apt because the overall numbers are so different for...