Set up cache methods and data processing for graph