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

Online Help

All Products    Maple    MapleSim


JGF (.jgf) 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 graph with 18 vertices and 17 arc(s)

(1)

GraphTheory:-DrawGraphMammals,style=spring

RPSImportexample/RockPaperScissors.jgf,base=datadir

RPSGraph 2: a directed graph with 3 vertices and 3 arc(s)

(2)

GraphTheory:-DrawGraphRPS

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

CGGraphTheory:-SpecialGraphs:-ClebschGraph

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

(3)

Exportclebsch.jgf,CG,base=homedir

2516

(4)

References

  

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

See Also

Formats

Formats,JSON

GraphTheory