PROBCORE-616 created simple graph implementation to replace the directed multigraph that was already there.