`(di)graph.addEdge(...)` now returns the id of the edge added.
Fix bug where auto-assigned edge ids could collide with existing edge ids.