Import an external graph to my code

Is there a way in rust that i can load a graph(in whatever type, like csv, DOT,etc...) and save it in a variable(preferably using the petgraph library) ? i'm asking this because i want to manage with some network-graphs examples, and it will be painfull to manually add +500 nodes & edges. :smiley:

By the look of it, can parse .dot files, but I'm not sure whether it interoperates with petgraph.

i read the documentation but it didn't worked well. but i will try to implement a parser for this to parse to a petgraph type. thanks anyway :smiley: