Orange: Network .gml

From OnnoCenterWiki
Jump to: navigation, search

sumber: https://gephi.org/users/supported-graph-formats/gml-format/



GML Format

GML (Graph Modeling Language) is a text file format supporting network data with a very easy syntax. It is used by Graphlet, Pajek, yEd, LEDA and NetworkX. GML Specification Official GML Specification

Gephi currently doesn’t provide a complete support of the GML format. Data structures are not supported. Datasets

Mark Newman’s page provides a large range of networks in GML here. Examples

Basic examples

The sample below shows a graph of three nodes and two edges.

graph
[
  node
  [
   id A
  ]
  node
  [
   id B
  ]
  node
  [
   id C
  ]
   edge
  [
   source B
   target A
  ]
  edge
  [
   source C
   target A
  ]
]

Labels

The sample below shows the same example but with both node and edge labels.

graph
[
  node
  [
   id A
   label "Node A"
  ]
  node
  [
   id B
   label "Node B"
  ]
  node
  [
   id C
   label "Node C"
  ]
   edge
  [
   source B
   target A
   label "Edge B to A"
  ]
  edge
  [
   source C
   target A
   label "Edge C to A"
  ]
]




Referensi