public bool removeDirectionalEdge(Vertex origin, Vertex destination) { Edge e = new Edge(origin, destination); //Removes edge if present bool sourceMod = origin.removeOutEdge(destination) || destination.removeInEdge(origin); return(edges.Remove(e) || sourceMod); }
public bool removeDirectionalEdge(Vertex origin, Vertex destination) { Edge e = new Edge(origin, destination); //Removes edge if present bool sourceMod = origin.removeOutEdge(destination) || destination.removeInEdge(origin); return edges.Remove(e) || sourceMod; }