2
$\begingroup$

I want to export a list of graphs that come as output to my program. However, I tried exporting all the graphs as graphs using Map and an Export statement with "graph.gml" statement, but got an error. I also tried exporting the list as a .dat file, but then when I import the list of graphs, I can't get it back to the "nice" pictorial form. Does anyone have any suggestions? I imagine there is a simple solution and I'm probably just implementing my attempts wrong.

$\endgroup$
  • 2
    $\begingroup$ "and I'm probably just implementing my attempts wrong" <-- you're more likely to get a useful answer if you describe what you tried $\endgroup$ – Szabolcs Feb 5 '15 at 17:26
2
$\begingroup$

Suppose graphs is your list of graphs.

names = Table["graph" <> ToString@i <> ".gml", {i, Length@graphs}]
MapThread[Export, {names, graphs}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.