Skip to content

Instantly share code, notes, and snippets.

@drheinheimer
Last active July 25, 2019 13:43
Show Gist options
  • Save drheinheimer/4f53427e7a8d295a71f44ba98b50a626 to your computer and use it in GitHub Desktop.
Save drheinheimer/4f53427e7a8d295a71f44ba98b50a626 to your computer and use it in GitHub Desktop.
from graphviz import Digraph
import json
with open('./pywr_model.json') as f:
model = json.load(f)
dot = Digraph(comment='System')
dot.edges(model['edges'])
dot.render('system.gv', view=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment