19 references to Tree
Microsoft.ML.Core (19)
Utilities\Tree.cs (19)
22internal sealed class Tree<TKey, TValue> : IDictionary<TKey, Tree<TKey, TValue>>
31private readonly Dictionary<TKey, Tree<TKey, TValue>> _children;
32private Tree<TKey, TValue> _parent;
50public Tree<TKey, TValue> this[TKey key]
65public Tree<TKey, TValue> Parent { get { return _parent; } }
74public ICollection<Tree<TKey, TValue>> Values { get { return _children.Values; } }
88_children = new Dictionary<TKey, Tree<TKey, TValue>>();
98public bool TryGetValue(TKey key, out Tree<TKey, TValue> value)
119public bool Contains(KeyValuePair<TKey, Tree<TKey, TValue>> item)
128public void Add(KeyValuePair<TKey, Tree<TKey, TValue>> item)
138public void Add(TKey key, Tree<TKey, TValue> newChild)
142Tree<TKey, TValue> child;
177Tree<TKey, TValue> child;
184public bool Remove(KeyValuePair<TKey, Tree<TKey, TValue>> item)
186Tree<TKey, TValue> child;
198foreach (var child in _children.Values)
206public IEnumerator<KeyValuePair<TKey, Tree<TKey, TValue>>> GetEnumerator()
216public void CopyTo(KeyValuePair<TKey, Tree<TKey, TValue>>[] array, int arrayIndex)
218IDictionary<TKey, Tree<TKey, TValue>> d = _children;