We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Use the Vertices property to get an enumerable collection of vertices:
Vertices
foreach(var v in g.Vertices) Console.WriteLine(v);
Use the Edges property get an enumerable collection of edges:
Edges
foreach(var e in g.Edges) Console.WriteLine(e);
The OutEdges method returns an enumerable collection of out-edges:
OutEdges
foreach(var v in g.Vertices) foreach(var e in g.OutEdges(v)) Console.WriteLine(e);
Similarly, InEdges returns an enumerable collection of in-edges.
InEdges