Graphlot
Graphlot is a library that allows to simply visualize networks. It is built upon matplotlib, and plotly and exploits network layouts from networkx, igraph and graphviz.
For this reason the first step is to install graphviz by running
sudo apt install graphviz
Then we can install graphlot through pip
pip install graphlot
The library takes as input a networx graph and can plot the degree distribution and the network itself with different layouts.
To demonstrate it we will generate a random network with the function CreateNetworkFromRandomClasses(). This function takes as input a list and an integer. The list is of length n_classes and in which every value is the number of nodes of that specific classes. The integer is the number of random edges of the graph.
The function stores the information of the node belonging to a specific class in "Type" node attribute and node name in "name" node attribute.
import graphlot as gv
import random
random.seed(123127844)
grafo = gv.CreateNetworkFromRandomClasses([20,20,30], 150)
gv.plot_degree_distribution(grafo)
random.seed(123127844)
gv.visualize_network(grafo,mode = '2d',node_color_attribute='Type',legend = 'Type',cmap='viridis',node_annotation = 'Name')
Moreover graphlot allows to plot networks in 3d in order to have a more flexible visualization.
random.seed(123127844)
gv.visualize_network(grafo,mode = '3d',node_color_attribute='Type',legend = 'Type',cmap='viridis',node_annotation = 'Name')
Metadata
Release files for graphlot 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| graphlot-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for graphlot-0.3.2-py3-none-any.whl |
Release files / graphlot-0.3.2-py3-none-any.whl
| Download URL | graphlot-0.3.2-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66efa5cc7689d3e64c8187286dbfe91ae02d5f62440b3c1dca8e391751d4502b
|
|
BLAKE2b-256 checksum How to use checksums |
b934dbce68a770b1b4bd8face9ba64ef6dfa8326f669c84bf369c98bf1bc7e7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for graphlot 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.