Corrected node labelling routine in preparation for network analysis