Boolean matrix multiplication is an operation on (0,1)-matrices. For an
matrix
and an
matrix
, the Boolean product has size
. Its entry in row
and column
is 1 if some index
satisfies
,
and is 0 otherwise. Equivalently, replace each positive entry of the ordinary matrix product by 1. For example, the Boolean product
of the row
and its transpose is 1.
A Boolean power of the adjacency matrix of a simple graph indicates which pairs of vertices are joined by a walk of the given length.