Skip to content

mdemichele/graph_implementations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graph_implementations

Here is my implementation of a directed and undirected graph ADT with Dikjstra's Algorithm.

The Project was built for CS 261 - Data Structures.

Running the Program

To run the program on your local machine, first clone the project.

git clone https://github.com/mdemichele/graph_implementations.git

There are a number of built tests for each graph type. To run the tests for the directed graph, use:

python3 d_graph.py

To run the tests for the undirected graph, use:

python3 ud_graph.py

What I Learned

  • Learned how to build class implementations of both directed and undirected graphs. The class implementations included functions for adding vertices, adding edges, removing edges, checking for valid paths through the graph, and checking for the presence of cycles within the graph.
  • Implemented Depth-first Search and Breadth-first Search algorithms for both directed and undirected graphs
  • Implemented Dijkstra's algorithm on a directed graph.

Note: I'll add brief descriptions of the expected outputs for the testing functions if this project somehow gets used by others :)

About

An Implementation of a Directed and Undirected Graph ADT With Dikjstra's Algorithm For CS 261 - Data Structures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages