Network Graph using D3js with grouping of nodes and elastic edges.
Project description
Force Graph using D3js.
How to use
from elasticgraph import Elasticgraph
# Initialize
d3 = Elasticgraph()
# Load karate example
adjmat, _ = d3.import_example('karate')
# Initialize
d3.graph(adjmat)
# Plot
d3.show()
# Node properties
d3.set_node_properties(
label=df['label'].values,
color=df['label'].values,
size=df['degree'].values,
edge_size=df['degree'].values,
cmap='Set1')
# Plot
d3.show()
Installation
To install elasticgraph, do:
pip install elasticgraph
To install elasticgraph from Gitlab source, do:
git clone https://gitlab.com/rwsdatalab/public/codebase/tools/elasticgraph.git
cd elasticgraph
pip install .
Run tests (including coverage) with:
pip install -r requirements-dev.txt
python setup.py test
Documentation
Include a link to your project’s full documentation here.
License
Copyright (c) 2022, Rijkswaterstaat
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
elasticgraph-0.1.0.tar.gz
(20.8 kB
view hashes)
Built Distribution
Close
Hashes for elasticgraph-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 598c571586728692c2ce1d5ff01f1610aa42a591660a425ad053bf3c9e7a41ff |
|
MD5 | 6458f24975652a6c8a122a02b27fbaec |
|
BLAKE2b-256 | d5bb594ff8b833d8ed13f306b3d470a635bb9f1d8df56e2c8317da20e34c1f7b |