Closed coleslaw481 closed 5 years ago
Major refactoring done to NiceCXNetwork.to_networkx()
due to numerous issues.
To fix this issue a new parameter mode
was added to NiceCXNetwork.to_networkx()
with a default value of legacy
which kept behavior like before for backwards compatibility.
To get the fixed version set mode
to 'default'
or None
As part of this fix the following changes were made:
Code in NiceCXNetwork.to_networkx()
was pulled out of this method and put into two separate classes:
LegacyNetworkXVersionOnePointOneFactory(legacymode=False)
NiceCXNetwork.to_networkx()
was invoked with networkx < 2.0 installed.represents
is properly added as a node attribute to the resulting graph (legacymode=True
disables this)networkx.MultiGraph
is now returned so multiple edges are not arbitrarily omitted (legacymode=True
disables this)LegacyNetworkXVersionTwoPlusFactory
NiceCXNetwork.to_networkx()
was invoked with networkx >= 2.0 installed.
In
NiceCXNetwork.to_networkx()
under the modulendex2/nice_cx_network.py
verify conversion of networkx object is consistent with documentation and is consistent between two versions of networkx (1.11 & 2.0+)Current documentation is a bit vague and CartesianCoordinates is incorrect aspect name it should be cartesianLayout: