Graphicness #
Here we study graphic and cographic matroids.
Column of a node-edge incidence matrix is either all 0
,
or has exactly one +1
entry, exactly one -1
entry, and all other elements 0
.
Equations
Instances For
Matrix is called graphic iff it is a node-edge incidence matrix of a (directed) graph.
Equations
- A.IsGraphic = ∀ (y : n), IsIncidenceMatrixColumn fun (x : m) => A x y
Instances For
The column function can be defined as an if statement with membership.
We write it in this form to satisfy Fintype.sum_ite_mem
.
Every element of a column of a node-edge incidence matrix is 1
, 0
, or -1
.
The sum of a column of an incidence matrix is 0
.
Every element of a graphic matrix is 1
, 0
, or -1
.
Column of a node-edge incidence matrix has either zero or two non-zero entries.
Column of a node-edge incidence matrix has either zero or two non-zero entries.
The sum of the columns in a graphic matrix is 0
.
A nongraphic submatrix of a graphic matrix is only nongraphic iff there exists a column in it that only has one non-zero entry
Node-edge incidence matrix is totally unimodular.
Graphic matroid is regular.