or download this
print "number of vertices: ".$G->vertices."\n";
print "number of edges: ".$G->edges."\n";
...
print "Name of edge E1->E2 is ".$G->get_attribute("name","E1","E2")."\
+n";
print "Name of edge E2->E3 is ".
(defined $G->get_attribute("name","E2","E3") ? $G->get_attribute
+("name","E2","E3") : "<undef>") ."\n";