Close
Close window
Sparse6 - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Sparse6 (.g6) Graph Format

Sparse6 file format

Description

Sparse6 is a text-based file format for storing one or more undirected graphs.

This format supports directed and undirected graphs, which may include self-loops and multiple 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 Sparse6 file encoding the Petersen graph.

>

PetersenImportexample/petersen.s6,base=datadir

PetersenGraph 1: an undirected graph with 10 vertices and 15 edges

(1)
>

GraphTheory:-DrawGraphPetersen,style=spring

References

McKay, B.D. and Piperno, A., Practical Graph Isomorphism, II, Journal of Symbolic Computation, 60 (2014), pp. 94-112, doi:10.1016/j.jsc.201309003


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /