DIMACS file format - Maple Help

Online Help

All Products    Maple    MapleSim


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

DIMACS (.col, .col.b) Graph Format - DIMACS file format

Description

• 

DIMACS is a file format for storing a single undirected graph. It is has both text and binary variants.

• 

The commands GraphTheory[ImportGraph] and GraphTheory[ExportGraph] can read from and write to the text-based version of this format.

• 

The general-purpose commands Import and Export also support this format.

Examples

Import a DIMACS file encoding the Coxeter graph.

coxeter:=FileTools:-JoinPathexample/coxeter.col,base=datadir

C:\Program Files\Maple 2015\data\example\coxeter.col

(1)

G:=Importcoxeter

G:=Graph 1: an undirected unweighted graph with 28 vertices and 42 edge(s)

(2)

GraphTheory:-DrawGraphG,style=spring

See Also

Formats, GraphTheory


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam