Class Graph added and map is defined by class Graph