MCPcopy Create free account
hub / github.com/Notgnoshi/generative / write_graph

Function write_graph

generative/io/tgf.rs:33–46  ·  view source on GitHub ↗
(
    mut writer: W,
    graph: &GeometryGraph<Direction>,
    format: &GraphFormat,
)

Source from the content-addressed store, hash-verified

31}
32
33pub fn write_graph<Direction, W>(
34 mut writer: W,
35 graph: &GeometryGraph<Direction>,
36 format: &GraphFormat,
37) -> eyre::Result<()>
38where
39 W: Write,
40 Direction: EdgeType,
41{
42 match format {
43 GraphFormat::Tgf => write_tgf_graph(&mut writer, graph),
44 GraphFormat::Wkt => write_wkt_graph(writer, graph),
45 }
46}
47
48pub fn write_tgf_graph<Direction, W>(
49 writer: &mut W,

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

write_tgf_graphFunction · 0.85
write_wkt_graphFunction · 0.85

Tested by

no test coverage detected