added function simplifyMultiEdges