generate graph document first attempt