The Mostar index of a finite connected simple graph
is the sum over edges
of the absolute difference between the number of vertices
closer to
and the number closer to
(Došlić et al. 2018). With
denoting the number of vertices
whose graph distance to
is strictly less than their distance to
,
it is
where
denotes the edge set.
For a tree, deletion of gives two connected components
whose sizes are
and
. The edge contribution is also the absolute difference
between the values of the graph transmission
at
and
. Thus the Mostar index sums these differences over
adjacent pairs, whereas the asymmetry term of the graph
hitting time index sums over all unordered pairs (Tamura et al. 2026,
p. 6).