convert graph to/from various formats
representation of a graph in one of the allowed formats
name of a format
ConvertGraph converts its input graph G to the format fmt. If G is of type GRAPHLN, the second argument is mandatory and must be one of digraph6, graph6, sparse6, or bits. If G is not of type GRAPHLN, the second argument is optional, and can be either of the above formats as well as maple.
The input graph G can be a GraphTheory graph (GRAPHLN), a networks graph, a string whose value is a digraph6, graph6, or sparse6 representation of a graph, or a bits representation of a graph (list of two integers).
d6 ≔ ConvertGraph⁡PetersenGraph⁡,'digraph6'
g6 ≔ ConvertGraph⁡PetersenGraph⁡,'graph6'
s6 ≔ ConvertGraph⁡PetersenGraph⁡,'sparse6'
b ≔ ConvertGraph⁡PetersenGraph⁡,'bits'
Graph 1: an undirected graph with 10 vertices and 15 edge(s)
The GraphTheory[ConvertGraph] command was updated in Maple 2017.
Download Help Document
What kind of issue would you like to report? (Optional)