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); }
public MemoryGraphReference(MemoryGraphNode from, MemoryGraphNode to) { From = from; To = to; }