MCPcopy Create free account
hub / github.com/douchuan/algorithm / EWGraph

Class EWGraph

src/graph/mst/ew_graph.rs:19–23  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

17/// adjacency list of v twice and contributes two to the degree
18/// of v.
19pub struct EWGraph {
20 nv: usize,
21 ne: usize,
22 adj: Vec<LinkedList<Edge>>,
23}
24
25impl IEWGraph for EWGraph {
26 fn V(&self) -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected