my $graph = Graph->new; $graph->set_vertex_attributes("/", { "type" => "dir" }); my $self = { graph => $graph };