pub fn generate_svg_string(
    graph: &RailwayGraph
) -> Result<String, Box<dyn Error>>
Expand description

Generates an SVG string representation of a given RailwayGraph.

The SVG string can be used to visualize the graph.

Arguments

  • graph - A reference to a RailwayGraph.

Returns

A Result containing an SVG-formatted String on success, or a Box<dyn Error> on failure.