XGraph

Open-source package for graphs,graph-algorithms


Keywords
algorithms, data-structures, graph, package, python36
License
MIT
Install
pip install XGraph==1.4.0

Documentation

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

from XGraph import *

if __name__ == "__main__":

    g = Graph() # Create the Graph instance

    # 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)