changes in class Graph

- change method evaluate. method should now work fine..