detach_edge = function(edge) local src, dest = edge[1], edge[2] table.remove_value(Nodes[src].outgoing_edges, dest) table.remove_value(Nodes[dest].incoming_edges, src) end