An open API service indexing awesome lists of open source software.

https://github.com/stuyy/graph

A simple Graph Data Structure.
https://github.com/stuyy/graph

algorithms data-structures graph graph-theory graphtheory java

Last synced: 4 days ago
JSON representation

A simple Graph Data Structure.

Awesome Lists containing this project

README

          

# Graph

ADTGraph is an implementation of an the Abstract Graph Data Structure.

# Methods
- `addVertex(node: VertexNode) : boolean` - Adds a VertexNode to the Graph

- `addEdge(nodeA: VertexNode, nodeB: VertexNode): void` - Adds an Edge to the Graph.

- `printEdges(node: VertexNode): void` - Prints all edges of the specified Node to console.

- `printVertices(void): void` - Prints all vertices of the Graph

- `getAdjancencyMatrix() : int [][]` - Returns an adjancency matrix representation of the graph.

- `DFS(start: VertexNode) : void` - Performs a Depth First Search given a starting VertexNode.