Example #1
0
 public void Remove(Edge e) {
     if (!adjacency[e.v, e.w]) {
         return;
     }
     adjacency[e.v, e.w] = false;
     edgeCount--;
 }
Example #2
0
 public void Insert(Edge e) {
     if (adjacency[e.v, e.w]) {
         return;
     }
     adjacency[e.v, e.w] = true;
     edgeCount++;
 }