graph: added updateEdge, tests and some docu