sudo apt-get update
sudo apt-get install graphviz libgraphviz-dev pkg-config
pip install pygraphviz
Data are from the SEIRS+ Model Network graph example.
I exported the interaction network graph (model.G
) and quarantine interaction network graph (model.Q
) from the network model demo simulation data in DOT format with:
import pygraphviz
networkx.drawing.nx_agraph.write_dot(model.G, 'model_g.gv')
networkx.drawing.nx_agraph.write_dot(model.Q, 'model_q.gv')
Run with npm run start
.
Inspired by yasiv.com.