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