A directed spanning tree (arborescence) rooted at vertex 5 must satisfy the following properties:
The root vertex 5 has an in-degree of 0.
Every other vertex j∈{1,2,3,4} must have an in-degree of exactly 1.
The subgraph contains no cycles (ignoring self-loops).
From the adjacency matrix definition, a directed edge exists from i to j (i→j) if and only if j≤i. Ignoring self-loops (i=j), edges only go from a higher-numbered vertex to a strictly lower-numbered vertex (i>j). Therefore, the graph is a Directed Acyclic Graph (DAG), ensuring that any choice of incoming edges cannot form a cycle.
For each vertex j∈{1,2,3,4}, we choose exactly one incoming edge from a vertex i such that i>j:
For vertex 4: possible incoming edges from {5}⟹1 choice.
For vertex 3: possible incoming edges from {4,5}⟹2 choices.
For vertex 2: possible incoming edges from {3,4,5}⟹3 choices.
For vertex 1: possible incoming edges from {2,3,4,5}⟹4 choices.
The total number of directed spanning trees rooted at vertex 5 is:
1×2×3×4=4!=24