ConnectedFrom

ConnectedFrom[j,conlist] gives a list of numbers for those points which are connected from point number j according to the connection list conlist.