You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mark Junker edited this page Jun 7, 2018
·
2 revisions
Setting up your project
Add a reference to QuickGraph to 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 QuickGraph namespace, algorithms are under the QuickGraph.Algorithms namespace.
Identify the vertex and edge types.
The vertex type can be any type as all QuickGraph datastructure are generic. The edge type must implement the IEdge<TVertex> interface:
classFooVertex{}// custom vertex typeclassFooEdge:Edge<FooVertex>[]// custom edge type
class FooGraph :AdjacencyGraph<FooVertex,FooEdge>{}// custom graph type