LEDA (.gw, .lgr) Graph Format - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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

LEDA (.gw, .lgr) Graph Format

LEDA file format

Description

 • LEDA 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.

Examples

Import a LEDA file encoding a directed graph.

 > $\mathrm{digraph}≔\mathrm{Import}\left("example/digraph.lgr",\mathrm{base}=\mathrm{datadir}\right)$
 ${\mathrm{digraph}}{≔}{\mathrm{Graph 1: a directed unweighted graph with 11 vertices and 12 arc\left(s\right)}}$ (1)
 > $\mathrm{GraphTheory}:-\mathrm{DrawGraph}\left(\mathrm{digraph},\mathrm{style}=\mathrm{spring}\right)$

 See Also