Python Network(Graph) Visualization
Project description
PyNetViz(Python Network Visualization)
========
A python network(graph) visualization with networkx
It works in IPython(Jupyter)
https://github.com/koorukuroo/pynetviz
Web Demo
http://goo.gl/7U2IlV
Acknowledgement
========
Ulsan National Institute of Science and Technology
School of Natural Science
Mathematical Sciences
http://www.math.unist.ac.kr
Installing
----------
.. code-block:: python
pip install pynetviz
Usage
-----
.. code-block:: python
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:
.. image:: http://i.imgur.com/i5fQyuJ.png
:alt: Network(Graph) Visualization
Layout
--------------------------
.. code-block:: python
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()
Example
--------------------------
.. code-block:: python
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.
========
A python network(graph) visualization with networkx
It works in IPython(Jupyter)
https://github.com/koorukuroo/pynetviz
Web Demo
http://goo.gl/7U2IlV
Acknowledgement
========
Ulsan National Institute of Science and Technology
School of Natural Science
Mathematical Sciences
http://www.math.unist.ac.kr
Installing
----------
.. code-block:: python
pip install pynetviz
Usage
-----
.. code-block:: python
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:
.. image:: http://i.imgur.com/i5fQyuJ.png
:alt: Network(Graph) Visualization
Layout
--------------------------
.. code-block:: python
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()
Example
--------------------------
.. code-block:: python
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.
Project details
Release history Release notifications
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pynetviz-0.1.macosx-10.5-x86_64.tar.gz (4.8 kB) | File type Dumb Binary | Python version any | Upload date | Hashes View hashes |
Filename, size pynetviz-0.1.tar.gz (3.7 kB) | File type Source | Python version None | Upload date | Hashes View hashes |
Close
Hashes for pynetviz-0.1.macosx-10.5-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcfe95b7e230b9fa4ca1460c9bd7a7ef58eebc113694c19d9b32bddb2ed015e5 |
|
MD5 | e5f3d7a32c1faf76bbd1190caeae547d |
|
BLAKE2-256 | 6d80b7e8a78a9cb18851b83e59b5ac656b0b1742e5f9613827c42660006c1c9b |