Click or drag to resize
EdgeWeightedGraph Methods

The EdgeWeightedGraph type exposes the following members.

Methods
  NameDescription
Public methodAddEdge
Adds the undirected edge e to this edge-weighted graph.
Public methodAdj
Returns the edges incident on vertex v.
Public methodDegree
Returns the degree of vertex v.
Public methodEdges
Returns all edges in this edge-weighted graph. To iterate over the edges in this edge-weighted graph, use foreach notation: foreach (Edge e in G.Edges()).
Public methodStatic memberMainTest
Demo test the EdgeWeightedGraph data type.
Public methodToString
Returns a string representation of the edge-weighted graph. This method takes time proportional to E + V.
(Overrides ObjectToString.)
Top
See Also