CARVIEW |
Select Language
HTTP/2 200
date: Tue, 14 Oct 2025 05:32:49 GMT
server: Generic Web Server
content-location: GraphsAndMatrices.html.en
vary: negotiate,accept-language
tcn: choice
set-cookie: WR_SID=f7bd9a11.64117b6e9fa1e; path=/; max-age=315360000; domain=.wolfram.com
accept-ranges: bytes
content-type: text/html
content-language: en
content-security-policy: upgrade-insecure-requests
Graphs and Matrices—Wolfram Documentation
Graphs and Matrices
Matrix representations of graphs go back a long time and are still in some areas the only way to represent graphs. Adjacency matrices represent adjacent vertices and incidence matrix vertex-edge incidences. Both are fully capable of representing undirected and directed graphs. Matrix representations provide a bridge to linear algebra-based algorithms for graph computation.
Matrix Graph Constructors
AdjacencyGraph — graph from an adjacency matrix
IncidenceGraph — graph from an incidence matrix
KirchhoffGraph ▪ WeightedAdjacencyGraph
Matrix Graph Representations
AdjacencyMatrix — vertex-vertex adjacency matrix
IncidenceMatrix — vertex-edge incidence matrix
KirchhoffMatrix ▪ WeightedAdjacencyMatrix
Sparse Arrays »
SparseArray — create and represent a sparse matrix
Normal ▪ MatrixPlot ▪ ...