Grpah structure not catching all possible neighbors