Graph::trim

fn trim_right(
    self: Graph
) -> Graph

Trims any empty space on both sides of the graph.

Examples

Here's a graph which has a significant amount of empty on both sides:

By applying trim to it here's how it'll look like: