kuanb / peartree

peartree: A library for converting transit data into a directed graph for sketch network analysis.
MIT License
201 stars 23 forks source link

Coalesce graph operation #45

Closed kuanb closed 6 years ago

kuanb commented 6 years ago

Fixes https://github.com/kuanb/peartree/issues/42

API: Gc = pt.coalesce(G, 400)

Where first arg is the Graph, and second is the threshold in the units currently relevant to the graph's set CRS.

compare

codecov[bot] commented 6 years ago

Codecov Report

Merging #45 into master will increase coverage by 0.53%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
+ Coverage   92.51%   93.04%   +0.53%     
==========================================
  Files          10       10              
  Lines         561      604      +43     
==========================================
+ Hits          519      562      +43     
  Misses         42       42
Impacted Files Coverage Δ
peartree/toolkit.py 99.01% <100%> (+0.71%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 41d4bc6...43255cf. Read the comment docs.