Graph Representation

Learn the techniques to represent graphs in computer memory.

We'll cover the following...

Introduction

There are many ways to represent a graph. The two most common ways of representing a graph are explained below:

Adjacency matrix

An adjacency matrix is a V*V binary matrix A. Element Ai,jA_{i,j}, is 1 if there is an edge from vertex i to vertex j. Else, A ...