Performance

Changed get_graph_for_elts to get_neighbors.
get_graph_for_elts was too greedy for a large DB