New in Wolfram
Mathematica
8: Graph & Network Modeling
◄
previous
|
next
►
Application Areas
Import and Export Graph Formats
Mathematica
8 supports all common formats, including
GML
,
GXL
, and
Pajek
. This imports a
GML
file and exports it to
Pajek
.
In[1]:=
X
g = Import["ExampleData/bigdipper.gml"];
In[2]:=
X
Column[{Show[g, ImageSize -> {200, 200}], StringReplace[ExportString[g, "Pajek"], "\r" -> ""]}, Frame -> All, Alignment -> Center]
Out[2]=