graphparser: fix the order of connecting unlabeled links.