def app_q2(): data3 = project.generate_random_digraph(500, .25) data2 = project.generate_random_digraph(700, .55) data1 = project.generate_random_digraph(1000, .9) data = utils.read_graph_data("alg_phys-cite.txt") draw_plot(data, "r+", "citations") draw_plot(data3, "g^", "random_graph(500, .25)") draw_plot(data2, "ys", "random_graph(700, .55)") draw_plot(data1, "mo", "random_graph(1000, .9)") plt.show()
def app_q2_2(): data1 = project.generate_random_digraph(5000, .85) draw_plot(data1, "mo", "random_graph(5000, .85)") plt.show()