public bool AddEdge(ActivityEdge edge)
        {
            if (this.ContainsEdge(edge))
                return false;

            this.edges.Add(edge, edge);
            this.vertice.Add(edge.Source);
            this.vertice.Add(edge.Target);
            return true;
        }
Ejemplo n.º 2
0
 public bool RemoveEdge(ActivityEdge edge)
 {
     if (this.edges.Remove(edge))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 3
0
        public bool AddEdge(ActivityEdge edge)
        {
            if (this.ContainsEdge(edge))
            {
                return(false);
            }

            this.edges.Add(edge, edge);
            this.vertice.Add(edge.Source);
            this.vertice.Add(edge.Target);
            return(true);
        }
 public bool RemoveEdge(ActivityEdge edge)
 {
     if (this.edges.Remove(edge))
     {
         return true;
     }
     else
         return false;
 }
 public bool ContainsEdge(ActivityEdge edge)
 {
     return this.edges.ContainsKey(edge);
 }
Ejemplo n.º 6
0
 public bool ContainsEdge(ActivityEdge edge)
 {
     return(this.edges.ContainsKey(edge));
 }