• Stars
    star
    149
  • Rank 248,619 (Top 5 %)
  • Language
    Jupyter Notebook
  • License
    Other
  • Created almost 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Creation of interactive networks using d3 Javascript

Interactive force-directed network creator (d3graph)

Python Pypi Docs LOC Downloads Downloads License Forks Issues Project Status DOI Medium Donate

d3graph is a python package that simplifies the task of creating interactive and stand-alone networks in d3 javascript using python. For this package I was inspired by d3 javascript examples but there was no python package that could create such interactive networks. Here it is; a library that automatically creates D3 javascript and HTML code based on an input adjacency matrix in python! This library does not require you any additional installation, downloads or setting paths to your systems environments. You just need python and this library. All other is taken care off. Huray!

This library will create an interactive and stand-alone network that is build on d3 javascript. d3graph only requirs an adjacency matrix in the form of an pandas dataframe. Each column and index name represents a node whereas values >0 in the matrix represents an edge. Node links are build from rows to columns. Building the edges from row to columns only matters in directed cases. The network nodes and edges can be adjusted in weight, color etc, based on user defined paramters.

⭐️ Star this repo if you like it ⭐️

Blogs

Read the blog Creating beautiful stand-alone interactive D3 charts with Python to get a structured overview and usage of d3graph.

Documentation pages

On the documentation pages you can find detailed information about the working of the d3graph with many examples.

Installation

Install from PyPI
pip install d3graph
Import package
from d3graph import d3graph

Examples

Click on the following image to load the interactive Titanic network that is created with d3graph. Note that the relations are determined using HNet. Click here to go to the page with code to make the network.

Example: Changing node properties

Example: Convert source-target list to adjacency matrix

Example: Breaking of networks using slider


Contribute

  • All kinds of contributions are welcome!

Citation

Please cite d3graph in your publications if this is useful for your research. See column right for citation information.

Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • If you wish to buy me a Coffee for this work, it is very appreciated :)

More Repositories

1

bnlearn

Python library for learning the graphical structure of Bayesian networks, parameter learning, inference and sampling methods.
Jupyter Notebook
410
star
2

distfit

distfit is a python library for probability density fitting.
Jupyter Notebook
321
star
3

pca

pca: A Python Package for Principal Component Analysis.
Jupyter Notebook
252
star
4

findpeaks

The detection of peaks and valleys in a 1d-vector or 2d-array (image)
Python
179
star
5

clustimage

clustimage is a python package for unsupervised clustering of images.
Jupyter Notebook
74
star
6

hgboost

hgboost is a python package for hyper-parameter optimization for xgboost, catboost or lightboost using cross-validation, and evaluating the results on an independent validation set. hgboost can be applied for classification and regression tasks.
Python
51
star
7

clusteval

Clusteval provides methods for unsupervised cluster validation
Jupyter Notebook
46
star
8

benfordslaw

benfordslaw is about the frequency distribution of leading digits.
Python
39
star
9

undouble

Python package undouble is to detect (near-)identical images.
Python
38
star
10

kaplanmeier

kaplanmeier is an python library to create survival curves using kaplan-meier, and compute the log-rank test.
Python
26
star
11

googletrends

Google trends is to examine trending google searches on geographical location and across time for input keywords.
Python
22
star
12

hnet

Association ruled based networks using graphical Hypergeometric Networks.
Python
21
star
13

caerus

Detection of favorable moments in time series data
Python
19
star
14

treeplot

Plot tree based machine learning models
Python
11
star
15

d3heatmap

d3heatmap is a Python package to create interactive heatmaps based on d3js.
HTML
9
star
16

flameplot

flameplot is a python package for the quantification of local similarity across two maps or embeddings.
Python
8
star
17

worldmap

This python package enables to color different countries in the world or the regions per country.
Python
7
star
18

ismember

ismember
Python
7
star
19

scatterd

Scatterd is a Python package for easy and fast creation of beautiful scatter plots.
Python
7
star
20

classeval

Evaluation of supervised predictions for two-class and multi-class classifiers
Python
5
star
21

imagesc

Make quick and beautiful heatmaps
Python
4
star
22

df2onehot

Convert a unstructured array into a stuctured dataframe.
Python
3
star
23

colourmap

Colourmap generates an unique lit of RGB and HEX colors for the specified input list
Python
3
star
24

datazets

Datazets is a python package to retrieve example data sets.
Python
3
star
25

pypickle

pypickle is for saving and loading files in pickle format.
Python
2
star
26

irelease

Library that automates releasing your Github python package at Pypi.
Python
2
star
27

thompson

Thompson is Python package to evaluate the multi-armed bandit problem. In addition to thompson, Upper Confidence Bound (UCB) algorithm, and randomized results are also implemented.
Python
2
star
28

dicter

Python package with advanced dictionary functions. Traverse through nested dicts. Set and get multiple keys. Flattens dicts. Store and load in json and more!
Python
2
star
29

relevantpackage

Example of a Python Package
Python
1
star
30

bnclassify

bnlearn
Python
1
star
31

d3plus

d3plus
Python
1
star