liveBook · Manning

Similarity graph

As explained in Data Without Labels

A similarity graph is a graph whose nodes represent data points and whose edges encode similarity between them.

A similarity graph represents data points as nodes and connects pairs whose similarity is positive or exceeds a threshold. Edge weights express relative similarity: stronger connections indicate points more likely to belong to the same cluster. section 5.3.1

Represent the graph through these related structures:

  • Adjacency matrix: places nodes on rows and columns, using 1 for a connection and 0 for no connection; nonoriented graphs produce symmetric matrices. section 5.3.1
  • Degree matrix: records each node’s number of connections on the diagonal. section 5.3.1
  • Laplacian matrix: subtracts the adjacency matrix from the degree matrix and supports spectral clustering. section 5.3.1
Figure 5.4 A graph is a simple representation of data points. The points or nodes are connected by edges if they are very similar (left). The weight is higher if the similarity between data points is high; for dissimilar data points, the weight is less (right).
figure

Compare unweighted connections with weighted edges, where larger weights indicate greater similarity. section 5.3.1

How Data Without Labels covers it

How deep it goes
Defines nodes, edges, weights, adjacency matrices, degree matrices, and Laplacians, but stops short of algorithmic implementation.
Examples
Uses five-node graph diagrams and contrasts binary adjacency values with weighted connections based on relative similarity.
What it assumes
Assumes familiarity with eigenvalues and eigenvectors while introducing graph and matrix representations directly.
What you can do after
Evaluate clustering structure by translating data-point connections into adjacency, degree, and Laplacian matrices.
How it connects
Connects similarity graphs with spectral clustering, adjacency matrices, degree matrices, Laplacian matrices, eigenvalues, and eigenvectors.

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.