diff --git a/Social_Network_Analysis_for_Starupts/chapter5/two_mode.py b/Social_Network_Analysis_for_Starupts/chapter5/two_mode.py index 876ad48ba..2edfccfed 100644 --- a/Social_Network_Analysis_for_Starupts/chapter5/two_mode.py +++ b/Social_Network_Analysis_for_Starupts/chapter5/two_mode.py @@ -47,8 +47,7 @@ def trim_edges(g, weight=1): ## compute the projected graph pacnet=bi.weighted_projected_graph(g, pacs, ratio=False) pacnet=net.connected_component_subgraphs(pacnet)[0] -weights=[math.log(edata['weight']) for f,t,edata in pacnet.edges(data=True)] - +weights=[math.log(edata['weight']) for f,t,edata in pacnet.edges()] net.draw_networkx(p,width=weights, edge_color=weights)