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

Class SymbolGraph

src/graph/util/symbol_graph.rs:39–43  ·  view source on GitHub ↗

Typical applications involve processing graphs defined in files or on web pages, using strings, not integer indices, to define and refer to vertices. To accommodate such applications, we define an input format with the following properties: - Vertex names are strings. - A specified delimiter separates vertex names (to allow for the possibility of spaces in names). - Each line represents a set of e

Source from the content-addressed store, hash-verified

37/// ...
38///
39pub struct SymbolGraph<'a> {
40 st: HashMap<&'a str, usize>,
41 keys: Vec<&'a str>,
42 graph: Box<dyn IGraph>,
43}
44
45impl<'a> SymbolGraph<'a> {
46 /// is key a vertex?

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected