Create a graph from Template Toolkit file