clean up to match new graphviz-friendly json schema