Skip to content

Commit

Permalink
Add exercises to chapter 10 (serialization)
Browse files Browse the repository at this point in the history
  • Loading branch information
natenka committed Feb 3, 2017
1 parent 4c9d22d commit c669300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/10_serialization/draw_network_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'label': 'Network Map',
'fontsize': '16',
'fontcolor': 'white',
'bgcolor': '#333333',
'bgcolor': '#3F3F3F',
'rankdir': 'BT',
},
'nodes': {
Expand Down Expand Up @@ -78,5 +78,5 @@ def draw_topology(topology_dict, out_filename='img/topology', style_dict=styles)
graph.edge(head, tail, headlabel=h_label, taillabel=t_label, label=" "*12)

graph = apply_styles(graph, style_dict)
filename = graph.render(filename='img/topology')
filename = graph.render(filename=out_filename)
print "Topology saved in", filename

0 comments on commit c669300

Please sign in to comment.