Revision fac6e5a4 globecomm/heuristic_bc/utility.py

View differences:

globecomm/heuristic_bc/utility.py
62 62
    return graph
63 63

  
64 64

  
65
def plot_graph(output_filepath, graph, title=""):
65
def plot_graph(out_filepath, graph, title=""):
66 66
    plt.figure(1, figsize=(15, 10))
67 67
    plt.title(title)
68 68
    pos=nx.spring_layout(graph)
69 69
    colors=range(30)
70 70
    nx.draw(graph, pos, node_size=1000, with_label=True)
71 71
    nx.draw_networkx_labels(graph,pos,font_size=20,font_family='sans-serif')
72
    plt.savefig(output_filepath)
72
    plt.savefig(out_filepath)
73 73
    plt.close()
74 74
    # plt.show()
75 75

  

Also available in: Unified diff