for Each Neighbour
Executes a given function on all the neighbours of a given node.
More performant then retrieving a copied list of nodes and calling forEach on them
Parameters
t
The node whose neighbours we want to process
action
The function to be called on each neighbour
Throws
Illegal State Exception
If the specified node is not found in the graph.