Skip to main content

nxquickplot

Convenient plotting for graphs in NetworkX. These functions are rather asymmetric/non-composable because they aim to literally capture concrete use patterns rather than abstracting over them. If you need other stuff, just use the raw draw_networkx API.

API

Draw the graph with a force-directed layout

from nxquickplot import plot_force
import networkx

g = networkx.DiGraph()

g.add_node('Alice')
g.add_node('Bob')
g.add_edge('Alice', 'Bob')

plot_force(g)

Draw the graph with a random deterministic layout

from nxquickplot import plot_random_deterministic
import networkx

g = networkx.DiGraph()

g.add_node('Alice')
g.add_node('Bob')
g.add_edge('Alice', 'Bob')

plot_random_deterministic(g)

Draw the graph plotting a certain attribute rather than the node ID

from nxquickplot import plot_with_attr
import networkx

g = networkx.DiGraph()

g.add_node('Alice', age=42)
g.add_node('Bob', age=31)
g.add_edge('Alice', 'Bob')

plot_with_attr(g, 'age')

This must be force directed.

Release files for nxquickplot 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nxquickplot 1.0.0
File Size Uploaded
nxquickplot-1.0.0.tar.gz 1.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nxquickplot 1.0.0
File Interpreter ABI Platform
nxquickplot-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / nxquickplot-1.0.0.tar.gz

Download URL nxquickplot-1.0.0.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d9cecb27f5322ab6bf472e90d6f5083048e6dbe2015f56f4dfa8fdcc55e56e24
BLAKE2b-256 checksum
How to use checksums
02fc82e4cf105cc2958cf1867b81410e76ba6313ead01f68e153eba8f2ff1174
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

Release files / nxquickplot-1.0.0-py3-none-any.whl

Download URL nxquickplot-1.0.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fab2fd870eb0030aff1d4913c3a166e29e7e264ee11c8150a12913acf666c289
BLAKE2b-256 checksum
How to use checksums
1085fa46b5dba0c5b56f35f78d7efeea8b483892ce85c25fa3063ee3cda64647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page