Provide a generic graph drawing plot in utopia
Description
Dantro's network group does contain a create_graph function that allows the user to create a graph directly from the data container storing vertex and edge data. Further, networkx provides a graph drawing function that draws the graph in a matplotlib figure. Using Utopia's plotting framework, especially the possibility to provide parameters via configuration files calls for a generic graph drawing function in Utopya.
Proposal
Write a generic draw_graph function that creates a graph using the corresponding NetworkGroup member function, and draws it by calling the networkx.draw(g) function (further information on additional parameters in the reference manual.
Note
The integration of dantro in Utopia in the context of graph creation will be much smoother when utopia/dantro#118 is merged. So, it would be wise to wait until it is implemented first.
How to test the implementation?
Test the plot using the CopyMeGraph model and call the plot in the pipeline.
Related issues
utopia/dantro#118