pmndrs / directed

A flexible, minimal scheduler written in TypeScript
MIT License
25 stars 1 forks source link

Reference vertices in the directed graph by an id instead of object reference #17

Open akdjr opened 2 months ago

akdjr commented 2 months ago

Currently the DAG structure references vertices by an object reference. This is fine, but has a number of awkward side effects, since the object reference is used as a key. This also prevents being able to "override" an item in the graph from an external source (see #6 ).

Replace vertex references with a string or symbol id instead of an object reference.