def outV(self, *args, **kwargs): """ Return the vertex that this edge is coming out of. :rtype: Vertex """ from mogwai.models.vertex import Vertex if self._outV is None: self._outV = self._simple_traversal('outV', **kwargs)[0] if isinstance(self._outV, string_types + integer_types): self._outV = Vertex.get(self._outV, **kwargs) return self._outV
def inV(self, *args, **kwargs): """ Return the vertex that this edge goes into. :rtype: Vertex """ from mogwai.models.vertex import Vertex if self._inV is None: self._inV = self._simple_traversal('inV', **kwargs)[0] if isinstance(self._inV, string_types + integer_types): self._inV = Vertex.get(self._inV, **kwargs) return self._inV