Skip to content

Automatically copies primal edges to dual nodes

Latest
Compare
Choose a tag to compare
@songololo songololo released this 22 Apr 20:15
· 24 commits to master since this release

It is often preferable to use the primal edges (lines) to visualise metrics on the dual graph (i.e. instead of using points).

This release implements a change where primal edges are automatically copied across to dual graph nodes when using the graphs.nx_to_dual() method. Downstream conversion via io.network_structure_from_nx() will likewise retain the primal edge geometry for visualisation of metrics written to dual node GeoDataframe structures.