This study reports a graph-based cucumber pan-genome constructed from twelve chromosome-scale genome assemblies, revealing ~4.3 million genetic variants, including 56,214 structural variants (SVs). The pan-genome facilitated the identification of SVs associated with agronomic traits like fruit shape, flowering time, and root growth, enhancing our understanding of cucumber trait evolution and providing resources for breeding.