Skip to main content

Network science abstract data types

Project description

SCINET

Build Author License PyPi Python

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

  1. Install Python >= 3.8
  2. 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

  1. Undirected graph

Add "directed" mappable property to edge data

  1. Network visualization

Create "matplotlib.pyplot" supported API

Project details


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)

Uploaded Source

Built Distribution

scinet_JoshGoA-0.3.1-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page