Fixed simplegraph building.
Fixed indexing error in tarjan's.