示例#1
0
 public GraphNodeEnumerator(GraphNode n)
 {
     m_arrayEnumerator = n.m_children.GetEnumerator();
 }
示例#2
0
 /// <summary>
 /// Adds a new child node
 /// </summary>
 /// <param name="key">The key for the child</param>
 /// <param name="data">The data for the child</param>
 /// <returns>The child node added to the graph.</returns>
 public GraphNode Add(object key, object data)
 {
     GraphNode n = new GraphNode(key, data, m_sorted) {m_parent = this};
     m_children.Add(key, n);
     return n;
 }