* addNode( * 'Node1', * array( * 'URL' => 'http://link1', * 'label' => 'This is a label', * 'shape' => 'box' * ) * ); * * $graph->addNode( * 'Node2', * array( * 'URL' => 'http://link2', * 'fontsize' => '14' * ) * ); * * $graph->addNode( * 'Node3', * array( * 'URL' => 'http://link3', * 'fontsize' => '20' * ) * ); * * $graph->addEdge( * array( * 'Node1' => 'Node2' * ), * array( * 'label' => 'Edge Label' * ) * ); * * $graph->addEdge( * array( * 'Node1' => 'Node2' * ), * array( * 'color' => 'red' * ) * ); * * $graph->image(); * ?> *
* $g->addEdge(array('node1' => 'node2')); * $attr = array( * 'label' => '+1', * 'style' => 'dashed', * ); * $g->addEdge(array('node3' => 'node4'), $attr); * * // With port specification * $g->addEdge(array('node5' => 'node6'), $attr, array('node6' => 'portA')); * $g->addEdge(array('node7' => 'node8'), null, array('node7' => 'portC', * 'node8' => 'portD')); *