Pajek (.net) Graph Format
Pajek file format
Description
Examples
Pajek is a text-based file format for storing a single directed or undirected graph.
The GraphTheory[ImportGraph] and GraphTheory[ExportGraph] commands can read from and write to this format.
The general-purpose commands Import and Export also support this format.
Import a Pajek file encoding the Petersen graph.
Petersen≔Import⁡example/petersen.net,base=datadir
Petersen≔Graph 1: an undirected graph with 10 vertices and 15 edge(s)
GraphTheory:-DrawGraph⁡Petersen
Import a Pajek file encoding the constellation Draco.
Draco≔Import⁡example/draco.net,base=datadir
Draco≔Graph 2: an undirected graph with 14 vertices and 14 edge(s)
GraphTheory:-DrawGraph⁡Draco
Export the Levi graph to a Pajek file in the home directory of the current user.
LG≔GraphTheory:-SpecialGraphs:-LeviGraph⁡
LG≔Graph 3: an undirected graph with 30 vertices and 45 edge(s)
Export⁡levi.net,LG,base=homedir
1126
See Also
Formats
GraphTheory
Download Help Document