simple path and star graph generator, to generate testcase