Method
add_neighbor
(&mut self, nbr: T, wt: u32)
Source from the content-addressed store, hash-verified
| 68 | } |
| 69 | |
| 70 | fn add_neighbor(&mut self, nbr: T, wt: u32) { |
| 71 | self.neighbors.push((nbr, wt)); |
| 72 | } |
| 73 | |
| 74 | // 获取邻点 |
| 75 | fn get_neighbors(&self) -> Vec<&T> { |
Tested by
no test coverage detected