NAME

Net::GraphSpace::Node

VERSION

version 0.0006

SYNOPSIS

my $node = Net::GraphSpace::Node->new(
    id       => 'node-a', # Required
    label    => 'Node A',
    popup    => 'stuff that goes in the popup window',
    color    => '#FF0000',
    size     => 10.5,
    shape    => 'RECTANGLE',
    graph_id => 2,
    labelFontWeight => 'bold',
);

DESCRIPTION

Represents a node in a GraphSpace graph.

ATTRIBUTES

Required:

id

A string id unique amonge all nodes.

Optional:

label

The node label.

Stuff that goes in the popup window. Currently, this can contain some html.

color

The node color in hex format, e.g., '#F00'.

size

The node size as a floating point value.

shape

The shape of the node. See http://cytoscapeweb.cytoscape.org/documentation/shapes for possible values.

graph_id

The integer id of the related graph.

labelFontWeight

Can be set to 'normal' or 'bold'.

SEE ALSO

http://cytoscapeweb.cytoscape.org/documentation

AUTHOR

Naveed Massjouni <naveedm9@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Naveed Massjouni.

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