Constructor up and addEdge implemented