Network science abstract data types
Project description
SCINET
Graph theory abstract data type.
scinet.Graph is designed upon the graph (abstract data type) definition and functions as a bare bones skeletal graph data mapping, containing abstract vertices and edges.
Installation
- Install Python >= 3.8
- Install scinet
$ pip install scinet
Usage
Import scinet
import scinet as sn
Create graph
G = sn.Graph()
Manipulate data
- add_vertex
G.add_vertex(vertex := "foo")
- remove_vertex
G.remove_vertex(vertex := "foo")
- add_edge
G.add_edge(edge := "foobar", source_vertex="foo", target_vertex="bar")
- remove_edge
G.remove_edge(edge := "foobar", source_vertex="foo", target_vertex="bar")
- adjacent
(target_vertex := "bar") in G[(source_vertex := "foo")]
- neighbors
G[(vertex := "foo")].keys()
See docs for further details.
Contributors
- JoshGoA - Main contributor - GitHub
TODO
- Undirected graph
Add "directed" mappable property to edge data
- Network visualization
Create "matplotlib.pyplot" supported API
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
scinet-JoshGoA-0.3.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for scinet_JoshGoA-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c122c1a42cbf2903b89244c8b289b96bdeb21e9638c5e2155633f3489569bbf |
|
MD5 | c3dc8a7364d45705f65469f87198fc9e |
|
BLAKE2b-256 | e83586e5089b0c9e9a6f898612e9a5284dc0b53af82b46d96c03e6888e3e47f7 |