Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
Image_GraphViz /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
bug_15019.phpt
723
B
-rw-r--r--
bug_15943.phpt
1.51
KB
-rw-r--r--
bug_16872.phpt
2.03
KB
-rw-r--r--
req_12913.phpt
798
B
-rw-r--r--
test12.phpt
2.99
KB
-rw-r--r--
test14.phpt
1.31
KB
-rw-r--r--
test16.phpt
2.91
KB
-rw-r--r--
test17.phpt
2.07
KB
-rw-r--r--
test19.phpt
5.87
KB
-rw-r--r--
test1.phpt
1.29
KB
-rw-r--r--
test20b.phpt
1.67
KB
-rw-r--r--
test20.phpt
1.67
KB
-rw-r--r--
test2.phpt
2.33
KB
-rw-r--r--
test3.phpt
1.83
KB
-rw-r--r--
test4.phpt
3.1
KB
-rw-r--r--
test5.phpt
1.36
KB
-rw-r--r--
test6.phpt
737
B
-rw-r--r--
test9.phpt
11.61
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test12.phpt
--TEST-- Unit test for graph with ports --FILE-- <?php /** * Test 12: "Graph of binary search tree" * * Graph definition taken from GraphViz documentation * * @category Image * @package Image_GraphViz * @author Philippe Jausions <jausions@php.net> */ require_once 'Image/GraphViz.php'; $graph = new Image_GraphViz(true, array(), 'structs', false); $graph->addNode('node0', array('shape' => 'record', 'label' => '<f0> |<f1> G|<f2> ')); $graph->addNode('node1', array('shape' => 'record', 'label' => '<f0> |<f1> E|<f2> ')); $graph->addNode('node2', array('shape' => 'record', 'label' => '<f0> |<f1> B|<f2> ')); $graph->addNode('node3', array('shape' => 'record', 'label' => '<f0> |<f1> F|<f2> ')); $graph->addNode('node4', array('shape' => 'record', 'label' => '<f0> |<f1> R|<f2> ')); $graph->addNode('node5', array('shape' => 'record', 'label' => '<f0> |<f1> H|<f2> ')); $graph->addNode('node6', array('shape' => 'record', 'label' => '<f0> |<f1> Y|<f2> ')); $graph->addNode('node7', array('shape' => 'record', 'label' => '<f0> |<f1> A|<f2> ')); $graph->addNode('node8', array('shape' => 'record', 'label' => '<f0> |<f1> C|<f2> ')); $graph->addEdge(array('node0' => 'node4'), null, array('node0' => 'f2', 'node4' => 'f1')); $graph->addEdge(array('node0' => 'node1'), null, array('node0' => 'f0', 'node1' => 'f1')); $graph->addEdge(array('node1' => 'node2'), null, array('node1' => 'f0', 'node2' => 'f1')); $graph->addEdge(array('node1' => 'node3'), null, array('node1' => 'f2', 'node3' => 'f1')); $graph->addEdge(array('node2' => 'node8'), null, array('node2' => 'f2', 'node8' => 'f1')); $graph->addEdge(array('node2' => 'node7'), null, array('node2' => 'f0', 'node7' => 'f1')); $graph->addEdge(array('node4' => 'node6'), null, array('node4' => 'f2', 'node6' => 'f1')); $graph->addEdge(array('node4' => 'node5'), null, array('node4' => 'f0', 'node5' => 'f1')); echo $graph->parse(); ?> --EXPECT-- digraph structs { node0 [ shape=record,label="<f0> |<f1> G|<f2> " ]; node1 [ shape=record,label="<f0> |<f1> E|<f2> " ]; node2 [ shape=record,label="<f0> |<f1> B|<f2> " ]; node3 [ shape=record,label="<f0> |<f1> F|<f2> " ]; node4 [ shape=record,label="<f0> |<f1> R|<f2> " ]; node5 [ shape=record,label="<f0> |<f1> H|<f2> " ]; node6 [ shape=record,label="<f0> |<f1> Y|<f2> " ]; node7 [ shape=record,label="<f0> |<f1> A|<f2> " ]; node8 [ shape=record,label="<f0> |<f1> C|<f2> " ]; node0:f2 -> node4:f1; node0:f0 -> node1:f1; node1:f0 -> node2:f1; node1:f2 -> node3:f1; node2:f2 -> node8:f1; node2:f0 -> node7:f1; node4:f2 -> node6:f1; node4:f0 -> node5:f1; }
Close