menpo.shape.empty_graph(shape, return_pointgraph=True)[source]

Returns an empty graph given the landmarks configuration of a shape instance.

  • shape (PointCloud or subclass) – The shape instance that defines the landmarks configuration based on which the graph will be created.

  • return_pointgraph (bool, optional) – If True, then a PointUndirectedGraph instance will be returned. If False, then an UndirectedGraph instance will be returned.


graph (UndirectedGraph or PointUndirectedGraph) – The generated graph.