ForceDiagram.face_vertex_descendant

ForceDiagram.face_vertex_descendant(fkey, key, n=1)[source]

Return the n-th vertex after the specified vertex in a specific face.

Parameters:
  • fkey (int) – Identifier of the face.

  • key (int) – The identifier of the vertex.

  • n (int, optional) – The index of the vertex descendant. Default is 1, meaning the next vertex.

Returns:

int – The identifier of the vertex after the given vertex in the face cycle.

Raises:

ValueError – If the vertex is not part of the face.