예제 #1
0
        public void AddNestedNode(MemoryGraphNode nested)
        {
            if (_nestedNodes == null)
            {
                _nestedNodes = new List <MemoryGraphNode>();
            }

            if (!ValidateNestedLimit())
            {
                throw new Exception("Attempted to add nested node over the limit.");
            }

            _nestedNodes.Add(nested);
        }
예제 #2
0
 public MemoryGraphReference(MemoryGraphNode from, MemoryGraphNode to)
 {
     From = from;
     To   = to;
 }