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