graph_models: Add -m and -c flags to add methods/classmethods in the graph.