NAME

Graph::Drawing::Vertex - A weighted vertex object with display attributes

SYNOPSIS

The methods in this module are called automatically by the parent and do not need to be called explicitly.

DESCRIPTION

This module represents a vertex object that is used by other Graph::Drawing modules.

PUBLIC METHODS

new %ARGUMENTS

This method is called automatically by the Graph::Drawing::Base module, and does not need to be called explicitly.

These attributes (except for name) are set with the same value, for all vertices, in the Graph::Drawing::Surface::_init routine. If desired, any attribute can be set, after the surface object creation, of course.

name $STRING

The name to use to identify the vertex. Currently, this must be unique among the rest of the vertices.

This object attribute is set automatically, based on the keys of the data attribute. It should not be set explicitly.

show_label 0 | 1

Display the name and weight beside the plotted vertex. Defaults to 1.

size $PIXELS

The size of the vertex diameter, in pixels.

x, y, z [$NUMBER]

Set/get accessor to the vertex coordinates.

name [$STRING]

Set/get accessor to the vertex's name attribute.

size [$PIXELS]

Set/get accessor to the vertex's size attribute.

weight

Accessor to return the vertex's weight attribute (that is retrieved with the Graph::Weighted::vertex_weight method).

PRIVATE METHODS

_debug @STUFF

Print the contents of the argument array with a newline appended.

SEE ALSO

Graph::Drawing

Graph::Drawing::Base

Graph::Drawing::Surface

TO DO

Uhh...

AUTHOR

Gene Boggs <gene@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2003 by Gene Boggs

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.