I have an output of many large graph files, specified by pair of vertices, in a format like
[3,0],[3,0],[3,2],[5,1],[5,1],[5,4],[6,0],[6,1],[7,2],[7,7],[8,6],[9,4],[10,2],[11,4]
which is like the standard-graph form of Maple.
I would like to use the graph-functions of Mathematica. As far as I understood, Mathematica by default uses a syntax like
Graph[{1 -> 2, 2 -> 3, 3 -> 1}]
Do you know of a quick way to use/convert/import my graph-format in Mathematica, or do I first need to convert my graph-files with some script to the correct Mathematica-input?
Thanks a lot for any help.
ExportGraph
) and import it in Mathematica (Import
). $\endgroup$