On prebuilt graphs
More on the documentation of prebuilt graphs.
Do not keep solution cost in memory. Compute it later