Graphs

{
    "protocol": {
        "version": "0.0.1",
        "lang": "noodle"
    },
    "graphs": [ ],
    "editors": []
}
FieldTypeDescription
graphsArrayAn array of graph objects

Details graphs object

{
    "protocol": {
        "version": "0.0.1",
        "lang": "noodle"
    },
        "graphs": [
            {
                "name": "Main",
                "graph": {
                    "nodes": [],
                    "connections": [],
                    "data": [],                    
                }
            }
        ],
    "editors": []
}
FieldTypeDescription
namestringname of the graph.
graphObjectActual data used for the VM

Details graph

FieldTypeDescription
nodesArrayList of Nodes defining the graph.
connectionsArray<Array>List of connections used by the graph's nodes. If no connection is given the array is empty.
dataArrayList of data used by the graph's nodes. If no data is given the object is empty.

Details: node

            {
                "name": "Number",
                "node":"123e4567-e89b-12d3-a456-426614174000",
                "id": 1
            }
FieldTypeDescription
namestringName of the Node
idnumber/stringUnique ID of the node.
nodestringUnique ID of the node.

Details: connections

"connections": [
            [],
            [],
            [
                {
                    "type": "output",
                    "name": "res",                    
                    "extern": "b",
                    "node": 5                
                }
            ],
    ]
FieldTypeDescription
typestringType of the connection: input or output
namestringName of the input|output on the current node
externstringThe name of the extern connector.
nodenumberThe id of the extern node.

Details: data

"data": [
    {},
    {	"num":{
        	"type": "number",
	        "value": "1"
    	}
    }
    ]

The data object itself is structured in a way that the Connector name is the name of the object key.