Data-flo
Data-flo
Source Code
CGPS
Search…
Data-flo Documentation
Adaptors
Dataflows
Data Types
Boolean
Datatable
File
Graph
Integer
List
Map
Number
Text
Getting Started Tutorial
API Documentation
Adaptors
Dataflows
Transformations
Powered By
GitBook
Graph
The
Graph
data type represents connected information.
Examples
`graph` argument of the "Dot to graph" adaptor
The "Dot to graph" adaptor produces a
Graph
from the
graph
argument.
Internal Structure
One common way to express a data graph is
DOT format
. Given the following DOT file:
graph.dot
1
graph {
2
A -- B;
3
A -- C;
4
B -- C;
5
C -- D;
6
}
Copied!
An equivalent
Graph
would be structured as follows:
graph.json
1
{
2
nodes
:
[
3
{
id
:
'A'
},
4
{
id
:
'B'
},
5
{
id
:
'C'
},
6
{
id
:
'D'
}
7
],
8
edges
:
[
9
{
10
id
:
'edge-1'
,
11
from
:
'A'
,
12
to
:
'B'
,
13
direction
:
'none'
14
},
15
{
16
id
:
'edge-2'
,
17
from
:
'A'
,
18
to
:
'C'
,
19
direction
:
'none'
20
},
21
{
22
id
:
'edge-3'
,
23
from
:
'B'
,
24
to
:
'C'
,
25
direction
:
'none'
26
},
27
{
28
id
:
'edge-4'
,
29
from
:
'C'
,
30
to
:
'D'
,
31
direction
:
'none'
32
}
33
]
34
}
Copied!
Previous
File
Next
Integer
Last modified
1d ago
Copy link
Contents
Examples
Internal Structure