def _get_col_by_edge(self, edge): """Return the vertex collection for the given edge document. :param edge: Edge document ID or body with "_id" field. :type edge: str | unicode | dict :return: Edge collection API wrapper. :rtype: arango.collection.EdgeCollection """ return self.edge_collection(get_col_name(edge))
def _get_col_by_edge(self, edge): """Return the vertex collection for the given edge document. :param edge: Edge document ID or body with "_id" field. :type edge: str | unicode | dict :return: Edge collection API wrapper. :rtype: arango.collection.EdgeCollection """ return self.edge_collection(get_col_name(edge))
def _get_col_by_vertex(self, vertex): """Return the vertex collection for the given vertex document. :param vertex: Vertex document ID or body with "_id" field. :type vertex: str | unicode | dict :return: Vertex collection API wrapper. :rtype: arango.collection.VertexCollection """ return self.vertex_collection(get_col_name(vertex))
def _get_col_by_vertex(self, vertex): """Return the vertex collection for the given vertex document. :param vertex: Vertex document ID or body with "_id" field. :type vertex: str | unicode | dict :return: Vertex collection API wrapper. :rtype: arango.collection.VertexCollection """ return self.vertex_collection(get_col_name(vertex))