Validation of params passed to neighbors_graphs