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

Class Edge

src/graph/mst/edge.rs:5–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3// Default, 用于MinPQ中的0号元素
4#[derive(Default, Copy, Clone)]
5pub struct Edge {
6 v: usize,
7 w: usize,
8 weight: f32,
9}
10
11impl Edge {
12 pub fn new(v: usize, w: usize, weight: f32) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected