You can generate graphs using PyDotPlus or PyGraphviz
PyDotPlus
PyGraphviz