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