Closed TimFinucane closed 6 years ago
So as @emipeanz pointed out, the node labels in the example graphs are integers starting at 0. If we use these and have labels as integers instead of strings, it becomes trivial to convert the rest to ArrayList, potentially even removing the label from Node.
As per email we cannot guarantee that the nodes will be labelled by integers so will have to work with strings
Optimization is still possible, with at most the addition of a getId() to Node public interface.
Improve access times to graph. This can be done by using lists instead of maps and maintaining indices. This task is not necessary but is possible and helpful. Should also not require much if all changes to exterior interface