(nv: usize)
| 52 | |
| 53 | impl From<usize> for EWDigraph { |
| 54 | fn from(nv: usize) -> Self { |
| 55 | let mut adj = Vec::with_capacity(nv); |
| 56 | for _ in 0..nv { |
| 57 | adj.push(LinkedList::default()); |
| 58 | } |
| 59 | |
| 60 | Self { |
| 61 | nv, |
| 62 | ne: 0, |
| 63 | adj, |
| 64 | in_degree: vec![0; nv], |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | impl From<&str> for EWDigraph { |
nothing calls this directly
no test coverage detected