undirectedgraph init