예제 #1
0
        public virtual bool RemoveAllAdjacents()
        {
            bool removed = false;

            foreach (KeyValuePair <Side, Node> adj in Adjacents.ToList())
            {
                if (adj.Value != null)
                {
                    removed = true;
                    RemoveAdjacent(adj.Key, adj.Value);
                }
            }
            return(removed);
        }
예제 #2
0
        public override bool RemoveAllAdjacents()
        {
            bool removed = false;

            foreach (KeyValuePair <Side, Node> adj in Adjacents.ToList())
            {
                if (adj.Value != null)
                {
                    removed = true;
                    RemoveAdjacent(adj.Key, adj.Value);
                }
            }
            ConnectedInputs.Clear();
            return(removed);
        }