View on GitHub

reading-notes

Implementation: Graphs

Directed vs Undirected

directed graph

undirected graph

Complete vs Connected vs Disconnected

complete graph

connected graph

disconnected graph

Acyclic vs Cyclic

A cycle is when a node can be traversed through and potentially end up back at itself.

Here is an example of 3 acyclic graphs:

acyclic

Here is an example of a two different cyclic graph:

a cyclic graph

Graph Representation

Weighted Graphs

weighted graph


refrences