Ejemplo n.º 1
0
 public bool ExistsEdge(object source, object target, string label)
 {
     BindingGraph.Edge e = new BindingGraph.Edge {
         Source = this.vertices[source],
         Target = this.vertices[target],
         Label  = label
     };
     return(this.vertices[source].OutgoingEdges.Any <BindingGraph.Edge>(r => r.Equals(e)));
 }
Ejemplo n.º 2
0
 public void RemoveEdge(object source, object target, string label)
 {
     BindingGraph.Vertex vertex  = this.vertices[source];
     BindingGraph.Vertex vertex2 = this.vertices[target];
     BindingGraph.Edge   item    = new BindingGraph.Edge {
         Source = vertex,
         Target = vertex2,
         Label  = label
     };
     vertex.OutgoingEdges.Remove(item);
     vertex2.IncomingEdges.Remove(item);
 }