add grpah output function to check the result is reduce graph from large graph