def get_exiting_edges(self, node):
    'Returns all edges that exit the specificed node'
    exit_edge_pattern = re.compile('edge_{0}_(?P<end_node>\\w+)_(?P<iterator>\\w+)'.format(node))
    exit_edges = []
    for (index, edge) in enumerate(self.edges):
        if re.match(exit_edge_pattern, edge):
            exit_edges.append(edge)
    return exit_edges
Returns all edges that exit the specificed node
def get_exiting_edges(self, node):
    
    exit_edge_pattern = re.compile('edge_{0}_(?P<end_node>\\w+)_(?P<iterator>\\w+)'.format(node))
    exit_edges = []
    for (index, edge) in enumerate(self.edges):
        if re.match(exit_edge_pattern, edge):
            exit_edges.append(edge)
    return exit_edges