add pair container and graph collect_link_list function.