core/graph/di_node-0.1.0#
Node of a directed graph.
Outline
Schema Definitions ¶
This type is an object with the following properties:
- name
object This node must validate against any of the following:
- stringNo length restriction
edgesarray No length restrictionItems in the array are restricted to the following types:attributesobject objectExamples ¶
A simple node without any child edges.:
!<asdf://weldx.bam.de/weldx/tags/core/graph/di_node-0.1.0> name: A
A simple node without any child edges and a simple attribute.:
!<asdf://weldx.bam.de/weldx/tags/core/graph/di_node-0.1.0> name: A attributes: {node_attr: 3.14}
A node with one child node.:
!<asdf://weldx.bam.de/weldx/tags/core/graph/di_node-0.1.0> name: A edges: - !<asdf://weldx.bam.de/weldx/tags/core/graph/di_edge-0.1.0> direction: fwd target_node: !<asdf://weldx.bam.de/weldx/tags/core/graph/di_node-0.1.0> name: B
Original Schema ¶
%YAML 1.1 --- $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" id: "asdf://weldx.bam.de/weldx/schemas/core/graph/di_node-0.1.0" title: | Node of a directed graph. examples: - - A simple node without any child edges. - | !<asdf://weldx.bam.de/weldx/tags/core/graph/di_node-0.1.0> name: A - - A simple node without any child edges and a simple attribute. - | !<asdf://weldx.bam.de/weldx/tags/core/graph/di_node-0.1.0> name: A attributes: {node_attr: 3.14} - - A node with one child node. - | !<asdf://weldx.bam.de/weldx/tags/core/graph/di_node-0.1.0> name: A edges: - !<asdf://weldx.bam.de/weldx/tags/core/graph/di_edge-0.1.0> direction: fwd target_node: !<asdf://weldx.bam.de/weldx/tags/core/graph/di_node-0.1.0> name: B type: object properties: name: anyOf: - type: string - tag: "asdf://weldx.bam.de/weldx/tags/uuid-0.1.*" edges: type: array items: tag: "asdf://weldx.bam.de/weldx/tags/core/graph/di_edge-0.1.*" attributes: type: object propertyOrder: [name, attributes, edges] ...