Relation

Representation of Graphs

Graphs can be represented using the adjacency matrix AI ⁣RV×V A \in {\rm I\!R} ^{|\mathcal{V}| \times |\mathcal{V}| }

Each node in the graph has a row and a column in the adjacency matrix.

The presence of edges is represented as an entry in the matrix as A[u,v]=1A[u,v] = 1 if (u,v)E (u,v) \in \mathcal{E} and A[u,v]=0A[u,v] = 0 otherwise

0

1

Updated 2022-06-26

Tags

Data Science