See the Graph Traversal Visualizer
What exactly is a graph?
Graph is a non-linear data structure consisting of vertices and edges. It is composed of a set of vertices (V) and a set of edges (E). The graph is denoted by G(V, E).

Browse Topics
Representation
Here are the two most common ways to represent a graph :
1. Adjacency Matrix
2. Adjacency List

Traversal
To traverse a Graph means to start in one vertex, and go along the edges to visit other vertices until all vertices, have been visited.
The two most common ways a Graph can be traversed are:
1. Depth First Search (DFS)
2. Breadth First Search (BFS)

Uses of graphs
1. Graphs are commonly used to represent social networks, such as networks of friends on social media.
2. Graphs can be used to represent the topology of computer networks, such as the connections between routers and switches.

Uses of graphs
3. Graphs are used to represent the connections between different places in a transportation network, such as roads and airports.
4. Graphs are used in Neural Networks where vertices represent neurons and edges represent the synapses between them.
