fixed graph method and added conpig for concurrency, yet to be implemented though - v0.3.0