Click or drag to resize
Graph Constructor
Overload List
  NameDescription
Public methodGraph(Int32)
Initializes an empty graph with V vertices and 0 edges. param V the number of vertices
Public methodGraph(Graph)
Initializes a new graph that is a deep copy of G.
Public methodGraph(TextInput)
Initializes a graph from an initialized TextInput stream The format is the number of vertices V, followed by the number of edges E, followed by E pairs of vertices, with each entry separated by whitespace.
Top
See Also