TimFinucane / Ainur

Solution for parallel task scheduling problem, inspired by the tale of the Lord of the Rings
Other
5 stars 0 forks source link

Optimize graph #37

Closed TimFinucane closed 6 years ago

TimFinucane commented 6 years ago

Adds const access for all operations in graph, as well as a method of easily creating graphs for testing purposes.

Notes: Adds an id field to Node, and as such anything creating a node should add an id field, however for testing or creation purposes you should be using Graph.Builder if possible

As there are no additions to the tests in current other pull requests, merge those first and then this pull request can be used to change those tests, which should be pretty easy and if done right make the code easier to read.

Also, resolves #9