HalfFace.vertex_degree

HalfFace.vertex_degree(vertex)[source]

Count the neighbors of a vertex.

Parameters

vertex (int) – The identifier of the vertex.

Returns

int – The degree of the vertex.