liveBook · Manning

Adjacency matrix

As explained in Data Without Labels

An adjacency matrix is a matrix representing which pairs of nodes in a graph are connected and, when applicable, the connection weights.

An adjacency matrix represents connections between graph nodes. Rows and columns identify nodes; each cell records whether the corresponding pair is connected. A value of 0 means no connection, while 1 means a connection exists. section 5.3.1

Use an adjacency matrix to:

  • Represent an undirected graph with a symmetric matrix, because each connection works in both directions. section 5.3.1
  • Prepare spectral clustering by combining the adjacency matrix with a degree matrix to calculate the Laplacian matrix. section 5.3.2
  • Extend binary connections to weighted similarities, where larger edge weights indicate greater similarity between data points. section 5.3.1

Reading a connection

For nodes 1 through 5, a cell at row 1 and column 5 contains 1 when nodes 1 and 5 are connected. A cell at row 1 and column 4 contains 0 when they are not connected.

How Data Without Labels covers it

How deep it goes
Defines binary and symmetric representations, then uses them in Laplacian construction without detailing implementation code.
Examples
Uses five connected nodes, including matrix entries for connections between nodes 1 and 5 and between nodes 1 and 4.
What it assumes
Assumes familiarity with nodes, edges, graphs, and similarity; develops the matrix representation from those ideas.
What you can do after
Apply it via spectral clustering workflows that calculate degree and Laplacian matrices from graph connectivity.
How it connects
Connects similarity graphs, weighted edges, degree matrices, Laplacian matrices, eigenvectors, and spectral clustering.

Also explained in

Compare how 8 books explain adjacency matrix →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Without Labels. The section links point to the parts of the book it draws on.