(nv: usize)
| 71 | |
| 72 | impl From<usize> for EWGraph { |
| 73 | fn from(nv: usize) -> Self { |
| 74 | let mut adj = Vec::with_capacity(nv); |
| 75 | for _ in 0..nv { |
| 76 | adj.push(LinkedList::default()); |
| 77 | } |
| 78 | |
| 79 | Self { nv, ne: 0, adj } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | impl From<&str> for EWGraph { |
nothing calls this directly
no test coverage detected