MCP algorithms for multiedges implementation