added adjancent edges method