Graph Constructor |
Name | Description | |
---|---|---|
![]() | Graph(Int32) |
Initializes an empty graph with V vertices and 0 edges.
param V the number of vertices |
![]() | Graph(Graph) |
Initializes a new graph that is a deep copy of G. |
![]() | Graph(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. |