#NEWLINE# def empty_graph( shape , return_pointgraph = True ) : #NEWLINE# #INDENT# '\n    Returns an empty graph given the landmarks configuration of a shape\n    instance.\n\n    Parameters\n    ----------\n    shape : :map:`PointCloud` or :map:`LandmarkGroup` or subclass\n        The shape instance that defines the landmarks configuration based on\n        which the graph will be created.\n    return_pointgraph : `bool`, optional\n        If ``True``, then a :map:`PointUndirectedGraph` instance will be\n        returned. If ``False``, then an :map:`UndirectedGraph` instance will be\n        returned.\n\n    Returns\n    -------\n    graph : :map:`UndirectedGraph` or :map:`PointUndirectedGraph`\n        The generated graph.\n    ' #NEWLINE# ( points , n_vertices ) = _get_points_and_number_of_vertices ( points ) #NEWLINE# edges = None #NEWLINE# if return_pointgraph : #NEWLINE# #INDENT# return PointUndirectedGraph . init_from_edges ( points , edges , n_vertices , skip_checks = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return UndirectedGraph . init_from_edges ( edges , n_vertices , skip_checks = True )