First graph implementation almost finished.