reading-notes


Project maintained by mr-atta Hosted on GitHub Pages — Theme by mattgraham

Graphs



what is Graph ⁉

A graph is a non-linear data structure that can be looked at as a collection of vertices (or nodes) potentially connected by line segments named **edges**.



Directed vs Undirected


An Undirected Graph is a graph where each edge is undirected or bi-directional. This means that the undirected graph does not move in any direction.

A Directed Graph also called a Digraph is a graph where every edge is directed.

Directed vs Undirected


Directed vs Undirected


Complete vs Connected vs Disconnected

A complete graph is when all nodes are connected to all other nodes.

A connected graph is graph that has all of vertices/nodes have at least one edge.

A disconnected graph is a graph where some vertices may not have edges.

A Cyclic graph is a graph that has cycles.


Graph Representation

πŸ“Œ Graphs