I improved the class Graph