public bool AddHalfRoot(HalfRoot <TKey, TGenerate> HalfRoot) { if (_halfRoots.ContainsKey(HalfRoot.Key)) { return(false); } _halfRoots.Add(HalfRoot.Key, HalfRoot); return(true); }
public bool RemoveHalfRoot(HalfRoot <TKey, TGenerate> HalfRoot) => _halfRoots.Remove(HalfRoot.Key);
internal bool TryGetHalfRoot(TKey key, out HalfRoot <TKey, TGenerate> n) => _halfRoots.TryGetValue(key, out n);