Skip to main content

ReGraph

Graph rewriting and graph-based knowledge representation library. Documentation is available at http://dev.executableknowledge.org/ReGraph.

About project

The ReGraph Python library is a generic framework for modelling graph-based systems. In this context models are viewed as graphs and graph transformations --- as a tool to describe both the system evolution and the model evolution read more about the approach.

ReGraph provides various utilities for graph rewriting which can be used for modelling the evolution of a system represented by a graph subject to rewriting. The rewriting functionality is based on the sesqui-pushout rewriting procedure [7]. In addition, the library enables a user to define a typing for models (graphs) that gives specifications for the structure of the models. This later functionality allows both to preserve the specified structure during rewriting and to propagate the changes to the specifications up to the models.

ReGraph contains a collection of utilities for rewriting graphs and hierarchies of graphs. It supports two backends: NetworkX graph objects and on Neo4j property graphs stored in a graph database.

Installation

In order to install the ReGraph library you can either use the latest version in PyPI:

pip install regraph

or install from the source by cloning the repository using SSH

git clone git@github.com:Kappa-Dev/ReGraph.git

or using HTTPS

https://github.com/Kappa-Dev/ReGraph.git

Install the library using Pythin setup tools:

python setup.py install

Neo4j installation and configuration

If you want to use the Neo4j-based backend of ReGraph, you need to install the Neo4j database (see installation instructions).

Moreover, ReGraph uses the APOC Neo4j plugin, currently not included in the community edition. To install the plugin see the instructions.

ReGraph uses Neo4j Bolt Driver for Python, therefore, having set up your database, you need to provide to ReGraph's API the address of the bolt server (for example, bolt://127.0.0.1:7687) and your credentials for connecting the database (i.e. user and password).

Run tests

Nosetests

nosetests -v -s

Metadata

Release files for regraph 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for regraph 2.0.1
File Size Uploaded
regraph-2.0.1.tar.gz 135.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for regraph 2.0.1
File Interpreter ABI Platform
regraph-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 371.4 kB

Release files / regraph-2.0.1.tar.gz

Download URL regraph-2.0.1.tar.gz
Size 135.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c9d47ba0a8032e7f3cf78e37be0ee0e61bbe531b466694cf8b91b6adb2f3e832
BLAKE2b-256 checksum
How to use checksums
1d252a3154ded5af70ee2d58ad2e2ab92663da7e25358db376cdc242d05a0b2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / regraph-2.0.1-py3-none-any.whl

Download URL regraph-2.0.1-py3-none-any.whl
Size 235.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5cfed5cd523b490325bd560e4eadec4460388318459ce1368d2f0cfed3ff9fe
BLAKE2b-256 checksum
How to use checksums
ee16b4a26cb591c1a41b0c01240f7f6f419311085323eb1c55a74a4b0cee5024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page