Skip Menu |

This queue is for tickets about the Graph-Easy CPAN distribution.

Report information
The Basics
Id: 101437
Status: new
Priority: 0/
Queue: Graph-Easy

Owner: Nobody in particular
Requestors: user42_kevin [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: setting root node
Date: Sat, 10 Jan 2015 12:04:28 +1100
To: bug-Graph-Easy [...]
From: Kevin Ryde <user42_kevin [...]>
Download (untitled) / with headers
text/plain 686b
I had trouble setting a root node in Graph::Easy 0.75. The program below prints undef where I hoped it might print a node object. Is set_attribute() like this the right way to set the root node? If so it doesn't seem to work. I see perhaps root_node() looks at $g->{att}->{root} but set_attribute() stores to $g->{att}->{graph}->{root} or something like that, but I couldn't tell what to call which would set the former. Either way it could be good if the docs of the root_node() method showed an example call of setting. Eg. Return the root node as Graph::Easy::Node object. The root node is set by name with $graph->set_attribute (root => 'node name').
text/x-perl 147b

Message body is not shown because sender requested not to inline it.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to