changed the code to use compact graph for suggest model command