Skip to main content

A simple graph library with DFS, BFS, and cycle detection.

Project description

python-xgraph

python-xgraph is a simple Python library for working with graphs. It provides basic functionalities like adding vertices and edges, performing DFS and BFS, detecting cycles, and more.

Installation

You can install the package via pip:

pip install python-xgraph

Usage

from python_xgraph import Graph

g = Graph(directed=True)
g.add_vertex("A")
g.add_edge("A", "B")
print(g.dfs("A"))

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

python-xgraph-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_xgraph-0.1.0-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python-xgraph-0.1.0.tar.gz.

File metadata

  • Download URL: python-xgraph-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for python-xgraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6a43569fbf9960244565ddd0a36560862c2372f218d88a1fd45b65c2906ca314
MD5 db0c45842c6d71d6d6a43b5c79f7b9c6
BLAKE2b-256 3878e7f08b8742ca0c127c21047c0f92313423ab08829ab134895a6560203b27

See more details on using hashes here.

File details

Details for the file python_xgraph-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_xgraph-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2bd43099e25b94a7574e2e95113ed34feeae9bb1d24981f9876618222261619a
MD5 80e4d9c3e9cbd3bbc10cab399a7be1fb
BLAKE2b-256 d958f8faecde4731d6f6850048657e7fd022c035183c1a15d761bf2c6d6f657c

See more details on using hashes here.

Supported by

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