get_cache function

Get a cached vector from a graph object