Can draw a graph
I ran it with the Jupyter Notebook that came with Anaconda 2.
pynetviz.py
# -*- coding: utf-8 -*-
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()
Recommended Posts