Method
add_neighbor
(&mut self, nbr: T, wt: i32)
Source from the content-addressed store, hash-verified
| 26 | } |
| 27 | |
| 28 | fn add_neighbor(&mut self, nbr: T, wt: i32) { |
| 29 | self.connects.push((nbr, wt)); |
| 30 | } |
| 31 | |
| 32 | // 获取相邻的点集合 |
| 33 | fn get_connects(&self) -> Vec<&T> { |
Tested by
no test coverage detected