Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
nodes graph layout positions coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
marcogoldin committed Mar 26, 2017
1 parent 9ae518f commit 857e927
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fb_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@
)
)

# node positioning algo
# http://networkx.readthedocs.io/en/latest/reference/drawing.html
pos=nx.spring_layout(G) # Fruchterman-Reingold

nx.set_node_attributes(G,'pos',pos)

try:
graph_type = config.get("Graph","graph_type")
except ConfigParser.NoOptionError, e:
Expand Down

0 comments on commit 857e927

Please sign in to comment.