complete_graph¶
-
menpo.shape.
complete_graph
(shape, graph_cls=<class 'menpo.shape.graph.PointUndirectedGraph'>)[source]¶ Returns a complete graph given the landmarks configuration of a shape instance.
Parameters: - shape (
PointCloud
orLandmarkGroup
or subclass) – The shape instance that defines the landmarks configuration based on which the graph will be created. - graph_cls (Graph or PointGraph subclass) –
The output graph type. Possible options are
{:map:`UndirectedGraph`, :map:`DirectedGraph`, :map:`PointUndirectedGraph`, :map:`PointDirectedGraph`}
Returns: graph (Graph or PointGraph subclass) – The generated graph.
Raises: ValueError
– graph_cls must be UndirectedGraph, DirectedGraph, PointUndirectedGraph or PointDirectedGraph.- shape (