added the possibility to define undirected graph
added the possibility to define an undirected graph