Pajek (.net) Graph Format - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Input and Output : File Formats : Formats/Pajek

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 unweighted 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 unweighted 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 unweighted graph with 30 vertices and 45 edge(s)

(3)

Exportlevi.net,LG,base=homedir

1126

(4)

See Also

Formats

GraphTheory