Graph::trim_right

fn trim_right( self: Graph ) -> Graph

Trims any empty space in the right portion of the graph.

Examples

Here's a graph which has a significant amount of empty space at the end:

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