Allow specifying graph_max in graph templates