Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
	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;  
	}