Graph::save

fn save(
    self: Graph
) -> Graph
fn save(
    self: Graph,
    path: String
) -> Graph

Saves the graph to a file. The path argument is optional; if missing the filename will be automatically generated.

Examples

graph()
    .add(allocations())
    .save("allocations.svg");