If sender u has packets to send to receiver v and receiver v is not already mapped to any other sender just check if the number of packets is greater than '0' because only one packet can be sent in a time frame anyways
if ( table [ u ] [ v ] > 0 and not seen [ v ] ) : NEW_LINE