Last active
July 25, 2019 13:43
-
-
Save drheinheimer/4f53427e7a8d295a71f44ba98b50a626 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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