In [1]:
from multinet.ipython import plot_3d, init_3d
from multinet.render import graph_layout
from multinet.render import csv_to_multigraph

#res = graph_layout('multinet/static/graph-samples/politics_ch_twitter.csv', None)

graph = csv_to_multigraph('multinet/static/graph-samples/politics_ch_twitter.csv', None)
res = graph.layout()

init_3d()
plot_3d(res)


['favorites', 'follows', 'retweets']
VIZUALISATION TIMER: igraph layouting : 2016-05-23 15:35:31.496183
VIZUALISATION TIMER: igraph layouting : 2016-05-23 15:35:31.548336
VIZUALISATION TIMER: returning coordinates : 2016-05-23 15:35:31.722796
Layouting took : 0 seconds using Fruchterman-Reingold
VIZUALISATION TIMER: returning response to frontend : 2016-05-23 15:35:31.855476

The Graph