Skip to main content

Open-source package for graphs,graph-algorithms

Project description

XGraph
======

|PyPi| |MIT|

+ Build Status(Windows/Linux)
|Build|

About
-----

Is an open-source graph package that contains algorithms for
undirected/directed graphs and its written in **Python3.6** .

Installation Instructions
-----
Install with **python3 -m pip install xgraph** or **pip3 install xgraph** .



Code Example
~~~~~~~~~~~~

.. code:: python

from XGraph import *

if __name__ == "__main__":

names = ['a','b','c','d'] # node-name list
g = Graph() # Create the Graph instance

createNodes(g,names) # Create the nodes based on the names list

# Create the Weighted Edges
g.addEdge('a','b',1)
g.addEdge('b','c',2)
g.addEdge('c','a',3)
g.addEdge('c','d',6)

# Print the graph
printGraph(g)

.. |Build| image:: https://travis-ci.org/DigitMan27/XGraph.svg?branch=master
:target: https://travis-ci.org/DigitMan27/XGraph

.. |Pypi| image:: https://badge.fury.io/py/XGraph.svg
:target: https://badge.fury.io/py/XGraph

.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
:target: https://opensource.org/licenses/MIT

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

XGraph-1.3.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file XGraph-1.3.1.tar.gz.

File metadata

  • Download URL: XGraph-1.3.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for XGraph-1.3.1.tar.gz
Algorithm Hash digest
SHA256 fb794fcb430d98f2a6fa3c7ea2da40566066be071a7c86d854d5529d341cb750
MD5 9474a3d13e8c8904d2a7d1f3ac8b43d0
BLAKE2b-256 3a9e737822c3cb4582e9ef5e0a52f493f9639203b9fe88514a37318c491bd8ff

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