VHRanger / CSRGraph

A tiny library for large graphs
MIT License
111 stars 17 forks source link

Add functionality for loading a CSRGraph from an in-memory set of edges #18

Closed cthoyt closed 1 year ago

cthoyt commented 2 years ago

This PR packages most of the functionality from read_edgelist() into a private function so it can be reused for other methods that construct pandas dataframes. This PR then adds a new function from_tuples to make it easier to generate a CSRGraph from tuples in memory

VHRanger commented 2 years ago

Looks all good, can you add a separate test for the from_df and from_tuples so that each read path (edgelist, df, tuples) are tested separately?

cthoyt commented 2 years ago

Will do! The from_df is transitively tested by both so it really only needs a test for from_tuples