How to save a material graph as a file

Basically, I have made a somewhat complex material node graph which takes a decent amount of time to set up, and I want to be able to use the same material graph that I already made for future/other projects. Is there any way I can save the material graph as a file on my computer, and load it in other projects?