before making neibhors nodes into vector