Made them functions

gen_graph takes a tlp.newGraph() and an access token.

All process_graph needs is the graph gen_graph returns.