Search notes:

Perl module GraphViz2

#!/usr/bin/perl
use warnings;
use strict;

use GraphViz2;

my $graph = GraphViz2 -> new (
  edge   => {color => '#ff7700'},
  global => {directed => 1},
  graph  => {label => $0, rankdir => 'TB'},
# logger => $logger,
  node   => {shape => 'oval'},
);

my $nd_foo = $graph -> add_node(name=>'Foo', shape=>'circle', color=>'green');
my $nd_bar = $graph -> add_node(name=>'Bar'                 , color=>'blue' );

$graph -> add_edge(from => 'Foo', to => 'Bar');

my $format='pdf';
$graph -> run(format=>$format, output_file=>"script.$format");
Github repository PerlModules, path: /GraphViz2/script.pl

See also

Perl modules.
Github repo for GraphViz2
Graphviz

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758200743, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/GraphViz2/index(64): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78