generic undirected graph added