edited graph_json script