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 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); }
public bool ContainsEdge(ActivityEdge edge) { return(this.edges.ContainsKey(edge)); }