HashMap edgeProfitsMap = new HashMap();
for (int j = 0; j < edges.length; j++) {
Edge edge = (Edge) edges[j];
Node source = edge.source();
Node sink = edge.sink();
//_edgeCostsMap.put(edge, _edgeCosts.toInt());
// For all the edges that have at least one delay
if (_edgeCosts.toInt(edge) != 0) {
graphPlusDelaysAsNodes.removeEdge(edge);