Implement the graph type enum