MCPcopy Create free account
hub / github.com/douchuan/algorithm / GraphDataParser

Class GraphDataParser

src/graph/util/parser.rs:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected