Djikstras algorithm
Answers shortest path for weighted graphs
Weight
A number associated with each edge on a graph
Weighted vs unweighted graphs
A weighted graph has…weights ; )
Cycle
Circles
When you can follow a node and end up at a previous node
Undirected graphs and cycles.
Undirected graphs are cycles because the nodes point to each other
Djikstras algorithm and cycles
It only works with no cycles or with positive weight cycles.
Bellman-ford algorithm
Works with negative weight edges