• Parameters

    • graph: FOLD

      a FOLD object

    • key: string

      the prefix for a key, eg: "vertices"

    Returns number

    the number of vertices, edges, or faces in the graph.

    Description

    Get the number of vertices, edges, or faces in the graph, as evidenced by their appearance in other arrays; ie: searching faces_vertices for the largest vertex index, and inferring number of vertices is that long.