update clingo scripts for producing results in graph