changed signature of buildGraph()
release 2.0.0