Adding builtings to instantiate.
Graph traversal capabilities to the depth-first search functions.
Out edge replacement maintaining order, now reusable.