code: def get_node_edges(self,node,type="both"):
      
      if type == "both":
        return [self.__edges[x] for x in self.__edges if node.id in self.__edges[x].get_node_ids()]
      elif type == "outgoing":
        return [self.__edges[x] for x in self.__edges if node.id == self.__edges[x].get_node_ids()[0]]
      elif type == "incoming":
        return [self.__edges[x] for x in self.__edges if node.id == self.__edges[x].get_node_ids()[1]]
      sys.stderr.write("ERROR: type is not a type "+type+"\n")
      sys.exit()
docs: given a node return the edges attached, by default get both incoming and outgoing
  
      :param node:
      :param type:
      :type node: Node
      :type type: string - default 'both'
      :returns: edge list
      :rtype: Edge[] edge list