Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Bayramli committed Aug 14, 2017
1 parent ce8f2bf commit 713118f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Social_Network_Analysis_for_Starupts/chapter5/two_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 713118f

Please sign in to comment.