empty_graph¶
-
menpo.shape.
empty_graph
(shape, return_pointgraph=True)[source]¶ Returns an empty graph given the landmarks configuration of a shape instance.
Parameters: - 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 aPointUndirectedGraph
instance will be returned. IfFalse
, then anUndirectedGraph
instance will be returned.
Returns: graph (
UndirectedGraph
orPointUndirectedGraph
) – The generated graph.- shape (