JGF (.tgf) Graph Format - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

JGF (.tgf) Graph Format

JGF file format

 

Description

Examples

References

Description

• 

JGF (JSON Graph Format) is a JSON-based file format for storing one or more graphs.

• 

It also allows the application of labels to vertices and edges.

• 

The format supports directed and undirected graphs, and permits the association of arbitrary metadata with vertices and edges.

• 

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 JGF displaying the relationships of various mammal species.

MammalsImportexample/mammals.jgf,base=datadir

MammalsGraph 1: a directed unweighted graph with 18 vertices and 17 arc(s)

(1)

GraphTheory:-DrawGraphMammals,style=spring

Export the Clebsch graph to a JGF file in the home directory of the current user.

CGGraphTheory:-SpecialGraphs:-ClebschGraph

CGGraph 2: an undirected unweighted graph with 16 vertices and 40 edge(s)

(2)

Exportclebsch.jgf,CG,base=homedir

2516

(3)

References

  

JSON Graph Format Specification, http://jsongraphformat.info/.

See Also

Formats

Formats,JSON

GraphTheory