The EWGraph class represents an edge-weighted graph of vertices named 0 through V – 1, where each undirected edge is of type Edge and has a real-valued weight. It supports the following two primary operations: add an edge to the graph, iterate over all of the edges incident to a vertex. It also provides methods for returning the degree of a vertex, the number of vertices V in the graph, and the nu
| 17 | /// adjacency list of v twice and contributes two to the degree |
| 18 | /// of v. |
| 19 | pub struct EWGraph { |
| 20 | nv: usize, |
| 21 | ne: usize, |
| 22 | adj: Vec<LinkedList<Edge>>, |
| 23 | } |
| 24 | |
| 25 | impl IEWGraph for EWGraph { |
| 26 | fn V(&self) -> usize { |
nothing calls this directly
no outgoing calls
no test coverage detected