Add global functions for creating graphs, update deck view page to incorporate them