NAME
Net::GraphSpace::Node
VERSION
version 0.0009
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 => 'auto',
shape => 'RECTANGLE',
graph_id => 'graph22',
borderWidth => 2.5,
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.
- popup
-
Stuff that goes in the popup window. Currently, this can contain some html.
- color
-
The node color in hex format. Examples: '#F00', '#F2F2F2'
- size
-
The node size. If set to 'auto', the node is automatically sized to fit the label. Examples: 42, 10.5, 'auto'
- shape
-
The shape of the node. See http://cytoscapeweb.cytoscape.org/documentation/shapes for possible values.
- graph_id
-
The id of a related graph. Example: 'graph42'
- borderWidth
-
The width of the node border. Example: 2.5
- 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.