A wrapper around pygraphviz to implement an ubergraph
Project description
Ubergraph
This is a package used to wrap pygraphviz to create ubergraphs.
Ubergraphs are based upon the paper.
Importing ubergraph
from ubergraph import ubergraph
Functions
Create an ubergraph
You can create an ubergraph which is simply a directed graph in pygraphviz.
u = ubergraph.ubergraph()
Add a node to the ubergraph
You can add nodes to your ubergraph.
u = ubergraph.add_node(u, "node")
Add an edge to the ubergraph
You can add edges to your ubergraph. The lists may be empty. Any undefined nodes or edges will be added to the ubergraph.
u = ubergraph.add_edge(u, "edge", list_of_from_nodes, list_of_to_nodes, list_of_from_edges, list_of_to_edges)
Get the nodes in the ubergraph
You can get the nodes in your ubergraph.
nodes = ubergraph.get_nodes(u)
Get the edges in the ubergraph
You can get the edges in your ubergraph.
edges = ubergraph.get_edges(u)
Get the nodes and edges from a node or edge
u = get_from(u, node_or_edge)
Get the nodes and edges to a node or edge
u = get_to(u, node_or_edge)
Get the edges that a node or edge is in
u = get_in_edges(u, node_or_edge)
Get the edges that is in a node or edge
u = get_out_edges(u, node_or_edge)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ubergraph-0.0.1.tar.gz.
File metadata
- Download URL: ubergraph-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
291fa725a5fae120cca8ac509e3b0896058eab2696176f293b7c88f507bd20e9
|
|
| MD5 |
a07cd6d4d50588c5fb362d91723d54b0
|
|
| BLAKE2b-256 |
3a5ef460ba5a00eddab5853696488ffb308b058a2209c7cd0f994077fce77462
|
File details
Details for the file ubergraph-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ubergraph-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85dae3711d91dd72e462560905ac9ca010d3bccdb6828d991736a373084efa52
|
|
| MD5 |
c7a1e91652db5c0319e0431dad93c8ab
|
|
| BLAKE2b-256 |
323b755f4bad296b6efbad54668b9e9a34e255e9f1e346ded990bb2e0e3c049e
|