In a directed graph, we define the degree into a vertex or the "indegree" of a vertex to be the number of parents of that vertex. Intuitively, this give the number of edges that point into the vertex.


The object degreeIn is a method function.