Added the possibility to define an undirected Graph