dominikbraun / graph

A library for creating generic graph data structures and modifying, analyzing, and visualizing them.
https://graph.dominikbraun.io
Apache License 2.0
1.81k stars 94 forks source link

DAG Graph Pagination #159

Open AnalogJ opened 10 months ago

AnalogJ commented 10 months ago

Hey @dominikbraun First, thanks again for writing this library, its been incredibly helpful in my Fasten Health project!

I know that this might not be a common use-case, but we're creating a massive DAG containing references to every single medical record associated with a patient. In some cases this can get to be 10,000s of records. Thankfully this can still be done in a couple of seconds, so its still reasonable to generate the DAG just-in-time.

Because of the way we display the expanded data to the user, we need to paginate the results.

Currently we do the following:

This doesn't seem to be working as expected. Do you have any ideas for how we can paginate though a massive DAG?