Fixed graph. Decided against using map in favor of simple object for storing vertices and in/out edges.