pub fn export_svg(graph: &PyRailwayGraph) -> PyResult<String>
Expand description

Export a PyRailwayGraph to an SVG string.

This function generates an SVG representation of the given PyRailwayGraph.

Arguments

  • graph - A reference to the PyRailwayGraph to be exported.

Returns

  • A PyResult containing a String of the SVG representation of the graph, or an error if the conversion failed.