code: def getEdges(self, vertex, inEdges = True, outEdges = True, rawResults = False) :
          
          if isinstance(vertex, Document):
              vId = vertex._id
          elif (type(vertex) is str) or (type(vertex) is bytes):
              vId = vertex
          else :
              raise ValueError("Vertex is neither a Document nor a String")
  
          params = {"vertex" : vId}
          if inEdges and outEdges :
              pass
          elif inEdges :
              params["direction"] = "in"
          elif outEdges :
              params["direction"] = "out"
          else :
              raise ValueError("inEdges, outEdges or both must have a boolean value")
  
          r = self.connection.session.get(self.edgesURL, params = params)
          data = r.json()
          if r.status_code == 200 :
              if not rawResults :
                  ret = []
                  for e in data["edges"] :
                      ret.append(Edge(self, e))
                  return ret
              else :
                  return data["edges"]
          else :
              raise CreationError("Unable to return edges for vertex: %s" % vId, data)
docs: returns in, out, or both edges liked to a given document. vertex can be either a Document object or a string for an _id.
          If rawResults a arango results will be return as fetched, if false, will return a liste of Edge objects