You can save a palette as an XML file to use later or in other graphs.
int SavePalette(string graphcontrol, string xmlfilename)
dw_1.LoadPalette("gr_1", "palette.xml")