change terminology neighbors instead of edges