tomalrussell / snkit

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

Missing function node connectivity degree #21

Closed ElcoK closed 5 years ago

ElcoK commented 5 years ago

No functions yet to estimate the connectivity degree of each node.

Suggested possible function to add:

def node_connectivity_degree(node,snNW):
    return len(snNW.edges.iloc[list(
    snNW.edges.sindex.intersection
    (node.geometry.bounds))])