A Unified Pre-training and Adaptation Framework for Combinatorial Optimization on Graphs