output to kGraph