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

Refactor 2 graph creation steps #26

Closed kuanb closed 6 years ago

kuanb commented 6 years ago

The two graph creation functions in graph.py have a lot of redundant operations. These are the funcs:

This PR seeks to consolidate a number of those repeat operations into helper functions.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.4%) to 89.423% when pulling 104c491ef34afd4a36b9d1b7aa505238d04ac98a on kuanb-refactor-graph into 7dd6ff0a3971f14baef1763ed3911e55fa7f9a48 on master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.4%) to 89.423% when pulling 104c491ef34afd4a36b9d1b7aa505238d04ac98a on kuanb-refactor-graph into 7dd6ff0a3971f14baef1763ed3911e55fa7f9a48 on master.