modified to remove multicast and find the neigbors network size