Revert "Issue #248 modifying method and creating  graph"

This reverts commit 3871cf093ae001160412ebd51c1a70ae2039e34c.