def neighbors(self, node_id):
node = self.get_node(node_id)<EOL>flattened_nodes_list = []<EOL>for a, b in [self.get_edge(edge_id)['<STR_LIT>'] for edge_id in node['<STR_LIT>']]:<EOL><INDENT>flattened_nodes_list.append(a)<EOL>flattened_nodes_list.append(b)<EOL><DEDENT>node_set = set(flattened_nodes_list)<EOL>if node_id in node_set:<EOL><INDENT>node_set.remove(node_id)<EOL><DEDENT>return [nid for nid in node_set]<EOL>
Find all the nodes where there is an edge from the specified node to that node.
        Returns a list of node ids.