A python network(graph) visualization with networkx
It works in IPython(Jupyter)
Demo : http://goo.gl/7U2IlV
pip install pynetviz
import networkx as nx
import pynetviz.sigmajs as nvs
G = nx.Graph()
G.add_edges_from([(1,2),(2,3),(3,4),(5,6)])
G.add_edge(1, 3)
G.add_edge(1, 6)
nvs.make_gexf(G)
nvs.make_html(drawEdges='true')
nvs.view_html()
Output:
G = nx.Graph()
G.add_edges_from([(1,2),(2,3),(3,4),(5,6)])
G.add_edge(1, 3)
G.add_edge(1, 6)
layout = nx.spring_layout(G)
nvs.make_gexf(G, layout)
nvs.make_html(drawEdges='true')
nvs.view_html()
G = nx.karate_club_graph()
layout = nx.spring_layout(G)
nvs.make_gexf(G, layout, size=nx.degree_centrality(G))
nvs.make_html(drawEdges='true')
nvs.view_html(height=1000)
G
Graph object of networkx.layout
Position nodes.size
Size nodes.drawEdges
True or False.height
Window height size.