explorable-viz / fluid

Data-linked visualisations
http://f.luid.org
MIT License
36 stars 3 forks source link

Graph API improvements #673

Closed rolyp closed 1 year ago

rolyp commented 1 year ago

Align graph API with specific operations used by slicing, to avoid extend having a rather weak contract (so that α can always be assumed not to be already in the graph), by introducing separate methods to add edges. Make the operations explicit (new names suggested below) to express the algorithmic goal more directly in the code, and also make bugs less likely (because of the tighter contracts) and expose opportunities for optimisation.

rolyp commented 1 year ago

Added provisional spec for the new operations.