This pretty much depends on what exactly you are planning to do. My first reaction is to say that maybe you won't need Python because you can use SNAP's Graph Processing Framework. Tools->Graph Builder and Tools->Batch Processing can help you in setting up a graph. If you insist on using Python you can use the GPF from there, too. But as I said before, what is the best way depends on what exactly you want to do.