Note
Go to the end to download the full example code.
Zero-dependency networks#
This example uses iplotx’s internal SimpleNetworkDataProvider to show how to visualise networkx without using any external analysis library (e.g. igraph, networkx).

[<iplotx.network.NetworkArtist object at 0x7dd197ce7ed0>]
import iplotx as ipx
network = {
"edges": [
("alice", "bob"),
("bob", "jago"),
("alice", "jago"),
]
}
layout = {
"alice": (0, 0),
"bob": (1, 1),
"jago": (1, 0),
}
ipx.plot(
network,
layout,
vertex_labels=True,
style="hollow",
)
Total running time of the script: (0 minutes 0.042 seconds)