Skip to content

Function: adjacencyMatrix() ​

ts
function adjacencyMatrix(graph, options?): AdjacencyMatrix;

The adjacency matrix of a graph, with rows and columns reordered so that its structure shows (backlog G8): it reads at densities where a node-link drawing is a hairball. Draw it with { type: 'heatmap', x, y, z }. An undirected graph (directed: false) fills both triangles.

Parameters ​

ParameterType
graphGraphLike
optionsAdjacencyOptions

Returns ​

AdjacencyMatrix

Released under the MIT License.