-
Notifications
You must be signed in to change notification settings - Fork 2
Using Quickgraph
Mark Junker edited this page Jun 7, 2018
·
2 revisions
- Add a reference to
QuickGraphto your project. QuickGraph provides a version compatible with .NET 4.6.1 or a .NET Standard 1.3/2.0. - Most data structures are defined under the
QuickGraphnamespace, algorithms are under theQuickGraph.Algorithmsnamespace.
The vertex type can be any type as all QuickGraph datastructure are generic. The edge type must implement the IEdge<TVertex> interface:
class FooVertex {} // custom vertex type
class FooEdge : Edge<FooVertex> [] // custom edge type
class FooGraph : AdjacencyGraph<FooVertex, FooEdge> {} // custom graph type- You can learn more about creating graphs, walking graphs or mutating graphs.