Pajek - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Pajek (.net) Graph Format

Pajek file format

 

Description

Examples

Description

• 

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.

Examples

Import a Pajek file encoding the Petersen graph.

PetersenImportexample/petersen.net,base=datadir

PetersenGraph 1: an undirected graph with 10 vertices and 15 edge(s)

(1)

GraphTheory:-DrawGraphPetersen

Import a Pajek file encoding the constellation Draco.

DracoImportexample/draco.net,base=datadir

DracoGraph 2: an undirected graph with 14 vertices and 14 edge(s)

(2)

GraphTheory:-DrawGraphDraco

Export the Levi graph to a Pajek file in the home directory of the current user.

LGGraphTheory:-SpecialGraphs:-LeviGraph

LGGraph 3: an undirected graph with 30 vertices and 45 edge(s)

(3)

Exportlevi.net,LG,base=homedir

1126

(4)

See Also

Formats

GraphTheory