get_nbrs function

Get all neighbors of one or more nodes