Incidence
A node is incident with an edge if the node is one of the endpoints of that edge.
The incidence matrix of an undirected graph is a matrix , where and denote the number of nodes and edges respectively, such that1
Representing weights
The definition can be extended to represent weighted edges within weighted graphs:
Example
Given an undirected graph:
The incidence matrix is: