Skip to content

Commit

Permalink
DOC FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragav Venkatesan committed Jan 18, 2017
1 parent 14740bf commit ab801f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
5 changes: 2 additions & 3 deletions docs/source/yann/utils/graph.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ Its attributes will be layer prorperties such as `type`, `output_shape` and so o
:mod:`yann.utils.graph` has some ports that uses this networkx graph.

This includes:
- `draw_network` which draws the network.

* `draw_network` which draws the network.

The documentation follows.
The documentation follows:

.. automodule:: yann.utils.graph
:members:
12 changes: 1 addition & 11 deletions yann/utils/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,7 @@ def draw_network(graph, filename = 'network.pdf', show = False, verbose = 2 ):
# convert from networkx -> pydot
if verbose >=3 :
print "... Coverting to dot"
"""
cgraph=nx.complete_graph(net.graph)
temp_agraph=nx.to_agraph(cgraph)
agraph=nx.from_agraph(temp_agraph)
"""
"""
agraph = to_agraph(graph)
# Need to work on putting a box around nodes of the same layer.
agraph.layout(prog = 'dot')
agraph.draw(filename)
"""

dot = to_pydot(graph)
dot.set_node_defaults(style="filled", fillcolor="grey")
dot.set_edge_defaults(color="blue", arrowhead="vee", weight="0")
Expand Down

0 comments on commit ab801f5

Please sign in to comment.