@Override public double getEdgeWeight(E edge) { return containsEdge(edge) ? graph.getEdgeWeight(edge) : null; }