2017-09-12 7 views

Répondre

4

mx.viz.plot_network renvoie un objet graphviz.dot.Digraph et peut être rendu comme tout autre objet Digraph.

Voici un exemple:

# Store the Digraph in a variable 
graph = mx.viz.plot_network(net) 

# Pick an image format from this list: http://www.graphviz.org/doc/info/output.html 
graph.format = 'png' 

# Choose a filename and render the image. 
graph.render('graph') 

code ci-dessus va rendre le graphique 'graph.png' dans le répertoire courant.