Skip to main content

Draw NetworkX graphs with Altair

Project description


# Networkx in Altair

*Draw NetworkX graphs with Altair*

This library is still under heavy maintenance! I'm currently working on adding
all the functionality in NetworkX's draw functions. Stay tuned.

```python
import networkx as nx
import nx_altair as nxa

# Generate a random graph
G = nx.fast_gnp_random_graph(n=20, p=0.25)

# Compute positions for viz.
pos = nx.spring_layout(G)

# Draw the graph using Altair
viz = nxa.draw(G, pos=pos)

# Show it as an interactive plot!
viz.interactive()
```

![Altair networkx](docs/_img/readme.png)


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nx_altair-0.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

nx_altair-0.0.1-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page