Skip to content

Bagel Format

Malte Langosz edited this page Aug 1, 2019 · 1 revision

Bagel File Format

The bagel file format is yaml, which can easily be handled by python or the [configmaps][] library in c++. The general expected document structure is as follows:

nodes: # list of nodes
  - name: 'name of the node'
    type: 'kind of node' # the type defines the number of in- and outputs
    id: 1 # the id is only used in this file to map the edges
    any: 'tags that are not used by the c_bagel library are ignored'

edges: # list of edges
  - fromNode: name of the source node
    fromNodeOutput: port name of the source node
    toNode: name of the target node
    toNodeInput: port name of the target node
    weight: 1.0
    any: "foo"
Clone this wiki locally