tomalrussell / snkit

spatial networks toolkit (python)
MIT License
31 stars 10 forks source link

Merge edges only if certain attributes match #33

Open czor847 opened 5 years ago

czor847 commented 5 years ago

Extend merge_edges(network) to only allow edges to merge if they share certain selected attributes (in addition to the node sharing and connectivity degree=2 requirements)

Useful in many applications where attributes may change without a junction present such as: road lane counts, power lines moving from overhead to underground, etc.