public void Add(IDictionaryGraphNode <T> item) { if (ContainsKey(item.Eid)) { throw new InvalidOperationException("Cannot add itself"); } item.Parent = this; _dictionary.Add(item.Eid, item); }
public bool Contains(IDictionaryGraphNode <T> node) { return(ContainsKey(node.Eid)); }
public bool Remove(IDictionaryGraphNode <T> item) { return(Remove(item.Eid)); }