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;
        }
示例#2
0
 public bool RemoveEdge(ActivityEdge edge)
 {
     if (this.edges.Remove(edge))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#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);
 }
示例#6
0
 public bool ContainsEdge(ActivityEdge edge)
 {
     return(this.edges.ContainsKey(edge));
 }