Example #1
0
        /// <summary>
        /// Removes a label from this node
        /// </summary>
        /// <param name="label">Label to remove</param>
        public void RemoveLabel(NomBankNodeLabel label)
        {
            _labels.Remove(label);

            // remove from root node collection if it is present
            NomBankLabeledNodeCollection nodes = GetLabeledNodeCollection(label, false);

            if (nodes != null && nodes.ContainsSingleNode(this))
            {
                nodes.RemoveSingleNode(this);
            }
        }