Mesh.vertex_degree

Mesh.vertex_degree(key)[source]

Count the neighbors of a vertex.

Parameters:
keyint

The identifier of the vertex.

Returns:
int

The degree of the vertex.