| 9 | use std::str::FromStr; |
| 10 | |
| 11 | pub struct GraphDataParser { |
| 12 | nv: usize, |
| 13 | ne: usize, |
| 14 | edges: Vec<(usize, usize)>, |
| 15 | weighted_edges: Vec<(usize, usize, f32)>, |
| 16 | } |
| 17 | |
| 18 | impl GraphDataParser { |
| 19 | pub fn parse(s: &str, is_weighted: bool) -> Result<Self, ()> { |
nothing calls this directly
no outgoing calls
no test coverage detected