menpo/shape/graph.py
def relative_locations(self):
        r"""
        Returns the relative location between the vertices of each edge. If
        vertex j is the parent and vertex i is its child and vector l denotes
        the coordinates of a vertex, then:

        ::

                    l_i - l_j = [[x_i], [y_i]] - [[x_j], [y_j]] =
                              = [[x_i - x_j], [y_i - y_j]]

        Returns
        -------
        relative_locations : ``(n_vertexes, 2)`` `ndarray`
            The relative locations vector.
        """
        parents = [p[0] for p in self.adjacency_array]
        children = [p[1] for p in self.adjacency_array]
        return self.points[children] - self.points[parents]
r"""
        Returns the relative location between the vertices of each edge. If
        vertex j is the parent and vertex i is its child and vector l denotes
        the coordinates of a vertex, then:

        ::

                    l_i - l_j = [[x_i], [y_i]] - [[x_j], [y_j]] =
                              = [[x_i - x_j], [y_i - y_j]]

        Returns
        -------
        relative_locations : ``(n_vertexes, 2)`` `ndarray`
            The relative locations vector.
        
r"""
Returns the relative location between the vertices of each edge. If
vertex j is the parent and vertex i is its child and vector l denotes
the coordinates of a vertex, then.
r " " " Returns the relative location between the vertices of each edge . If vertex j is the parent and vertex i is its child and vector l denotes the coordinates of a vertex then .
def relative_locations(self):
        parents = [p[0] for p in self.adjacency_array]
        children = [p[1] for p in self.adjacency_array]
        return self.points[children] - self.points[parents]
def relative_locations ( self ) : parents = [ p [ 0 ] for p in self . adjacency_array ] children = [ p [ 1 ] for p in self . adjacency_array ] return self . points [ children ] - self . points [ parents ]
r"""
Returns the relative location between the vertices of each edge.
r " " " Returns the relative location between the vertices of each edge .
r"""
        Returns the relative location between the vertices of each edge. If
        vertex j is the parent and vertex i is its child and vector l denotes
        the coordinates of a vertex, then:

        ::

                    l_i - l_j = [[x_i], [y_i]] - [[x_j], [y_j]] =
                              = [[x_i - x_j], [y_i - y_j]]

        Returns
        -------
        relative_locations : ``(n_vertexes, 2)`` `ndarray`
            The relative locations vector.
        """
self
l_i
``(n_vertexes, 2)`` `ndarray`
The relative locations vector.
` ` ( n_vertexes 2 ) ` ` ` ndarray ` The relative locations vector .