forked from YaccConstructor/QuickGraph
-
-
Notifications
You must be signed in to change notification settings - Fork 71
Mutating Graphs
Alexandre Rabérin edited this page May 12, 2020
·
1 revision
Most data structures are mutable and support batched addition/removal of vertices/edges.
var graph = new AjacencyGraph<string, Edge<string>>();
...
// Remove any vertex starting with foo
int removed = graph.RemoveVertexIf(v => v.StartsWith("foo"));
Console.WriteLine($"{removed} vertices removed");