(v: usize, w: usize, weight: f32)
| 9 | |
| 10 | impl DirectedEdge { |
| 11 | pub fn new(v: usize, w: usize, weight: f32) -> Self { |
| 12 | if weight.is_nan() { |
| 13 | panic!("Weight is NaN"); |
| 14 | } |
| 15 | Self { v, w, weight } |
| 16 | } |
| 17 | |
| 18 | pub fn weight(&self) -> f32 { |
| 19 | self.weight |
nothing calls this directly
no outgoing calls
no test coverage detected