empty graph problem fixed, graph construction is slow, trying on small graphs