GraphML
Developed byGraph Drawing
Type of formatGraph description language
Websitegraphml.graphdrawing.org

GraphML is an XML-based file format for graphs. The GraphML file format results from the joint effort of the graph drawing community to define a common format for exchanging graph structure data. It uses an XML-based syntax and supports the entire range of possible graph structure constellations including directed, undirected, mixed graphs, hypergraphs, and application-specific attributes.[1]

Overview

edit

A GraphML file consists of an XML file containing a graph element, within which is an unordered sequence of node and edge elements. Each node element should have a distinct id attribute, and each edge element has source and target attributes that identify the endpoints of an edge by having the same value as the id attributes of those endpoints. Here is what a simple undirected graph with two nodes and one edge between them looks like:

<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"  
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
  <graph id="G" edgedefault="undirected">
    <node id="n0"/>
    <node id="n1"/>
    <edge id="e1" source="n0" target="n1"/>
  </graph>
</graphml>

Additional features of the GraphML language allow its users to specify whether edges are directed or undirected, and to associate additional data with vertices or edges.

See also

edit
  • yEd, a widespread graph editor that uses GraphML as its native file format (but ports, hypergraphs not supported and limited nested graphs support).
  • Gephi, a graph visualization software that supports a limited set of GraphML.
  • DOT (graph description language)
  • Boost libraries allow to read from and write to GraphML format.

References

edit
  1. ^ Brandes, Ulrik; Eiglsperger, Markus; Lerner, Jürgen; Pich, Christian. "Graph Markup Language (GraphML)". In Tamassia, Roberto (ed.). Handbook of Graph Drawing and Visualization (PDF). CRC Press. pp. 517–541..
edit


📚 Artikel Terkait di Wikipedia

YEd

raster graphics as diagram elements. yEd loads and saves diagrams from/to GraphML, an XML-based format. It can also print very large diagrams that span multiple

Graphviz

gv2gml convert to/from GML, another graph file format. graphml2gv convert a GraphML file to the DOT format. gxl2gv, gv2gxl convert to/from GXL, another graph

List of filename extensions (F–L)

Markup Language (GML) Encoding Standard". Retrieved 2011-03-25. "GraphML (.graphml)". "GRIB (.grb, .grib)". "GTF2.2: A Gene Annotation Format". wustl

Social network analysis software

SBML, BioPAX, GraphML, Delimited text, .xls,. xlsx, Cytoscape.js JSON, Cytoscape CX CX JSON / CX2 JSON, Cytoscapre.js JSON, GraphML, PSI-MI, XGMML,

Gephi

structure) Social network analysis software File formats Dot language GraphML Graph Modelling Language Related software Cytoscape Graph-tool Graphviz

NodeXL

such as edgelists, adjacency matrices, GraphML, UCINet .dl, and Pajek .net. NodeXL Pro imports UCINet and GraphML files, as well as Excel spreadsheets containing

Graph-tool

appear to have been removed. Support for dot, Graph Modelling Language and GraphML formats. Convenient and powerful graph drawing based on cairo or Graphviz

Igraph

degree-preserving randomization. igraph can read and write file formats such as Pajek, GraphML, LGL, NCOL, DIMACS, and GML, as well as simple edge lists. The library