A smart match package
Project description
Introduction
The simple-graph module contains basic functions for graph.
License
simple-graph is a free software. See the file LICENSE for the full text.
Install
pip install simple-graph
Usage
from simple_graph import Graph
G = Graph()
G.add_edge(1, 2)
print(G.has_edge(1, 2))
ouput: True
G = Graph({0: [1, 2], 1: [2]})
print(G.neighbors(0))
output: [1, 2]
Authors
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
simple_graph-0.0.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for simple_graph-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cfd22a7c832223c2f813acc2b11925bbd2f5cb7bdd84658bc5ec68e37174583 |
|
MD5 | 85277580ce19df5e744953732a1cbdb0 |
|
BLAKE2b-256 | 82562cd3a2e8bd5b5fe02daa84a6ef4b8448f6416aa087cba1881db272cdb89f |