(
mut writer: W,
graph: &GeometryGraph<Direction>,
format: &GraphFormat,
)
| 31 | } |
| 32 | |
| 33 | pub fn write_graph<Direction, W>( |
| 34 | mut writer: W, |
| 35 | graph: &GeometryGraph<Direction>, |
| 36 | format: &GraphFormat, |
| 37 | ) -> eyre::Result<()> |
| 38 | where |
| 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 | |
| 48 | pub fn write_tgf_graph<Direction, W>( |
| 49 | writer: &mut W, |
no test coverage detected