Graphinate. Data to Graphs.
Project description
Graphinate. Data to Graphs.
⚠️ Under Development! ⚠️
This library is alpha-quality
Install
Graphinate is available on PyPI:
python -m pip install graphinate
Graphinate officially supports Python 3.9+.
Introduction
What is Graphinate?
Graphinate aims to simplify the generation of Graph data structures from sources of data. It utilizes and build upon NetworkX
What is a Graph?
In a mathematician's terminology, a graph is a collection of points and lines connecting some (possibly empty) subset of them. The points of a graph are most commonly known as graph vertices, but may also be called "nodes" or simply " points." Similarly, the lines connecting the vertices of a graph are most commonly known as graph edges, but may also be called "arcs" or "lines."
What is Data?
...data is a collection of discrete or continuous values that convey information, describing the quantity, quality, fact, statistics, other basic units of meaning, or simply sequences of symbols that may be further interpreted formally.
Defining a Graph
One can define Graphs in two general ways:
Edge first
Generate a Graph by supplying a list of edges. The simplest definition of an edge will be a tuple of 2 values. Each value represent a node (or vertex) in the graph. Additional attributes may be also added to the edge definition to signify additional meaning.
In this case one defines the edges explicitly and the nodes implicitly.
Such graph is focused more on the relationships or the structure of the Graph than on the nodes themselves.
Node first
Alternatively, one can first add nodes (vertices) to a graph without defining edges. Additional attributes may be added to the node definition to signify additional meaning. Later on edge definitions are added to generate the relationships between the nodes.
In this case both nodes and the edges are defines explicitly.
Such a graph has focus first on the nodes and later on the relationship between them.
Gallery
Examples
- Code
- Call Graph
- Python AST
- GitHub
- Repository
- Followers
- Ethernet
- Traceroute
- Math
- Graph Atlas
- Hailstone
- Text
- NLP
- Web
- Web Graph
Guide
By Convention
By Configuration
CLI
Commands
Usage: python -m graphinate [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
save
server
Save
Usage: python -m graphinate save [OPTIONS] MODEL
Options:
--help Show this message and exit.
Server
Usage: python -m graphinate server [OPTIONS] MODEL
Options:
-p, --port INTEGER
--help Show this message and exit.
Development
Lint
ruff check src
Docs
python -m mkdocs build
Build
python -m build
Test
python -m pytest ./tests --cov=./src --cov-branch --cov-report=xml --junitxml=test_results.xml
Acknowledgements
Dependencies
Dev Tools
IDE
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 Distribution
Built Distribution
Hashes for graphinate-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9c22df79e3045984523272b94b0edda89ff6fc2588f07766e765ef184c91975 |
|
MD5 | ff41a48db094bcea40a6c799e6097edf |
|
BLAKE2b-256 | 3ac10ec8c9dfbc0f829b7868ff5c5b993e8167d3a1e72c9ad3cf799344b0cb5a |