datavis-tech / graph-data-structure

A graph data structure with topological sort and shortest path algorithms.
MIT License
249 stars 46 forks source link

Fix optional argument for topological sort #50

Closed CrispyBacon1999 closed 3 years ago

CrispyBacon1999 commented 3 years ago

There was a missing optional argument on the topological sort method, preventing it from being called without passing in an array of source nodes. Also, I modified the tsconfig to make the error on line 149 go away, as .includes() requires ES2016 support.

curran commented 3 years ago

Published as https://github.com/datavis-tech/graph-data-structure/releases/tag/v2.0.0

Enjoy!