n14 | 719 | }'));
$graph->addNode('node2', array('shape' => 'record',
'label' => '{ a1 | 805 | }'));
$graph->addNode('node3', array('shape' => 'record',
'label' => '{ i9 | 718 | }'));
$graph->addNode('node4', array('shape' => 'record',
'label' => '{ e5 | 989 | }'));
$graph->addNode('node5', array('shape' => 'record',
'label' => '{ t20 | 959 | }'));
$graph->addNode('node6', array('shape' => 'record',
'label' => '{ o15 | 794 | }'));
$graph->addNode('node7', array('shape' => 'record',
'label' => '{ s19 | 659 | }'));
$graph->addEdge(array('node0' => 'node1'), null,
array('node0' => 'f0', 'node1' => 'n'));
$graph->addEdge(array('node0' => 'node2'), null,
array('node0' => 'f1', 'node2' => 'n'));
$graph->addEdge(array('node0' => 'node3'), null,
array('node0' => 'f2', 'node3' => 'n'));
$graph->addEdge(array('node0' => 'node4'), null,
array('node0' => 'f5', 'node4' => 'n'));
$graph->addEdge(array('node0' => 'node5'), null,
array('node0' => 'f6', 'node5' => 'n'));
$graph->addEdge(array('node2' => 'node6'), null,
array('node2' => 'p', 'node6' => 'n'));
$graph->addEdge(array('node4' => 'node7'), null,
array('node4' => 'p', 'node7' => 'n'));
echo $graph->parse();
?>
--EXPECT--
digraph G {
nodesep=0.05;
rankdir=LR;
node0 [ shape=record,label=" | | | | | | | ",height=2.5 ];
node1 [ shape=record,label="{ n14 | 719 | }" ];
node2 [ shape=record,label="{ a1 | 805 | }" ];
node3 [ shape=record,label="{ i9 | 718 | }" ];
node4 [ shape=record,label="{ e5 | 989 | }" ];
node5 [ shape=record,label="{ t20 | 959 | }" ];
node6 [ shape=record,label="{ o15 | 794 | }" ];
node7 [ shape=record,label="{ s19 | 659 | }" ];
node0:f0 -> node1:n;
node0:f1 -> node2:n;
node0:f2 -> node3:n;
node0:f5 -> node4:n;
node0:f6 -> node5:n;
node2:p -> node6:n;
node4:p -> node7:n;
}