Red Black Graph
Project description
Red-Black Graph - A DAG of Multiple, Interleaved Binary Trees
Introduction
Red-Black Graphs are a specific type of graph, a directed acyclic graph of interleaved binary trees. This data structure resulted from exploration of efficient representations for family history. This package presents and implements the underlying linear algebra as well as discusses some interesting applications.
This python module extends both scipy and numpy and also conforms to dockerutils
conventions for building and running docker images used in module development. There is a script in the bin
directory that can be used to setup the project for development or to prep for reading the notebook.
(bin/setup-project.sh
). You will want to create an activate a virtual environment prior to running the script.
Reading the Notebook
A research paper describing the linear algebra underlying Red-Black graphs as well as examples of application can be found in the Jupyter notebook, "Red Black Graph - A DAG of Multiple, Interleaved Binary Trees.ipynb". To access the notebook after you've setup the project for development, simply:
run-image notebook
open http://localhost:8888/lab
If you'd prefer to read hard copy, simply run:
`bin/generate-pdf.sh notebooks/Red Black Graph - A DAG of Multiple, Interleaved Binary Trees.ipynb`
A pdf file will be generated into the build/latex-{datestamped}
directory.
A Note on Implementations
redblackgraph.reference
- a pure python implementation. This simple implementation is intended primarily for illustrative purposes.redblackgraph.matrix
andredblackgrpah.array
- a Numpy C-API extension for efficient computation with the matrix multiplication operator, @, overloaded to support avos sum and product.redblackgraph.sparse_matrix
- an optimized implementation built on scipy's sparse matrix implementation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for RedBlackGraph-0.3.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fe189c1f3776affd1aeddf085f7b17a03bb60934c8936f0258b867a06ea59db |
|
MD5 | 8a4dcf528eb3b370f89daf943a900c53 |
|
BLAKE2b-256 | 5a9eacff487be403d26658a456b62096bcbe7ab5b8887ed0638a91dde7c17244 |