Started port of graph.
Merge changes.
Almost completed porting graph.