This program finds the topological order, possible cycles, and connected components of a mathematical graph. The graphs are given through “.txt” files. I used the "Depth-First Search" (DFS) algorithm to obtain the topological order and the possible cycles, since the DFS explains how the vertices of a graph are traversed and gives them initialization and finalization times. With these times, it is possible to find trailing edges and, therefore, possible cycles. To find the connected components, I used the “Breadth-First Search” (BFS) algorithm to discern how many separate subgraphs the given graph has.
-
Notifications
You must be signed in to change notification settings - Fork 0
Using Python, project that analyzes different attributes of a given mathematical graph, such as: Topological Order, Cycles and Connected Components. Uses recursion of functions, adjacency lists, classes, and graph theory.
marcoyuuu/Analyzing-Graphs
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Using Python, project that analyzes different attributes of a given mathematical graph, such as: Topological Order, Cycles and Connected Components. Uses recursion of functions, adjacency lists, classes, and graph theory.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published