Net::GraphSpace::Node
version 0.0009
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', );
Represents a node in a GraphSpace graph.
Required:
A string id unique amonge all nodes.
Optional:
The node label.
Stuff that goes in the popup window. Currently, this can contain some html.
The node color in hex format. Examples: '#F00', '#F2F2F2'
The node size. If set to 'auto', the node is automatically sized to fit the label. Examples: 42, 10.5, 'auto'
The shape of the node. See http://cytoscapeweb.cytoscape.org/documentation/shapes for possible values.
The id of a related graph. Example: 'graph42'
The width of the node border. Example: 2.5
Can be set to 'normal' or 'bold'.
http://cytoscapeweb.cytoscape.org/documentation
Naveed Massjouni <naveedm9@gmail.com>
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.
To install Net::GraphSpace, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::GraphSpace
CPAN shell
perl -MCPAN -e shell install Net::GraphSpace
For more information on module installation, please visit the detailed CPAN module installation guide.