Ejemplo n.º 1
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);
     n.m_parent = this;
     m_children.Add(key, n);
     return n;
 }
Ejemplo n.º 2
0
 public GraphNodeEnumerator(GraphNode n)
 {
     m_arrayEnumerator = n.m_children.GetEnumerator();
 }