VertexInDegree
VertexInDegree[g] gives the list of vertex in-degrees for all vertices in the graph g.
VertexInDegree[g, v]gives the vertex in-degree for the vertex v.VertexInDegree[{v -> w, ...}, ...]uses rules v -> w to specify the graph g.
Examples
VertexInDegree[Graph[{1 -> 2, 2 -> 3, 1 -> 3}]]VertexInDegree[Graph[{a -> b, b -> c, c -> a}], b]Please visit the official Wolfram Language Reference for more details.