Reading_Notes

View the Project on GitHub Hiba-Almade/Reading_Notes

Graphs:


Adjacency matrix:

is represented through a 2-dimensional array. If there are n vertices, then we are looking at an n x n Boolean matrix


Traversals :

required to traverse through a graph. The traversals itself are like those of trees.

>> Breadth first traversal start at a specific vertex/node. This node must be specified when calling the BreadthFirst() method.

>> Depth first traversal, we approach it a bit different than the way we do when working with a depth first traversal of a tree. Similar to how the breadth-first uses a queue, we are going to use a Stack for our depth-first traversal.