add options to generate graph  and limit graph size