Exemplo n.º 1
0
        /// <summary>
        /// Unbinds all predecessors and successors from this node.
        /// </summary>
        internal void UnBindAll()
        {
            while (Predecessors.Count > 0)
            {
                FlowNode <T> pre = Predecessors.First();
                pre.Successors.Remove(this);
                Predecessors.Remove(pre);
            }

            while (Successors.Count > 0)
            {
                FlowNode <T> succ = Successors.First();
                succ.Predecessors.Remove(this);
                Successors.Remove(succ);
            }
            //System.Diagnostics.Debug.Assert(DebugConsistencyCheck(pred, succ));
        }
 public void RemovePredecessor(IReactiveNode node)
 {
     Predecessors.Remove(node);
 }