Closed u3ks closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.0%. Comparing base (
4037c70
) to head (9ed20b3
). Report is 85 commits behind head on main.
One more thing, can you update API docs? Removing the old one and adding the new to the proper section.
I moved the node density functionality to the graph module and use networkx to compute it. The current implementation scales horribly and on larger graphs takes hours, since all edges have to be filtered multiple times with np.in1d. Getting the exact timing is a bit messy since subgraphs and higher order pysal have to be precomuted and affect the time. The new implementation takes around <20ish mintues on a graph with ~500k nodes and 2mil edges, together with the other mm.subgraph computations. For smaller datasets the current implementation + calculating a higher order graph ~ the new networkx implementation.