Click or drag to resize
EdgeWeightedGraph Constructor
Overload List
  NameDescription
Public methodEdgeWeightedGraph(Int32)
Initializes an empty edge-weighted graph with V vertices and 0 edges.
Public methodEdgeWeightedGraph(TextInput)
Initializes an edge-weighted graph from an input stream. The format is the number of vertices V, followed by the number of edges E, followed by E pairs of vertices and edge weights, with each entry separated by whitespace.
Public methodEdgeWeightedGraph(Int32, Int32)
Initializes a random edge-weighted graph with V vertices and E edges.
Top
See Also