Ubigraph - Perl client of Ubigraph software
use Ubigraph; my $u = new Ubigraph(); my $v1 = $u->Vertex(); my $v2 = $u->Vertex(shape=>"sphere"); my $e1 = $u->Edge($v1, $v2); $v1->shape("torus"); $v1->size(3.5); sleep(2); $u->clear(); my @v; for (0..100){ $v[$_] = $u->Vertex(); } for (0..100){ $u->Edge($v[int(rand(100))], $v[int(rand(100))]); select(undef, undef, undef, 0.05); }
Ubigraph is a Perl client interface for the UbiGraph software (http://ubietylab.net/ubigraph/) with object-oriented abstraction over the XML-RPC calls. UbiGraph is a client-server software for 3D visualization and layout of graph-theoretical network diagrams. This module hides the XML-RPC calls and allows visualization through object-oriented access to Vertex and Edge objects, similar to Python and Ruby APIs.
None by default.
The constructor of Ubigraph class starts the XML::RPC binding to Ubigraph server. Default url to bind is 'http://127.0.0.1:20738/RPC2'.
This method clears all entities.
These class methods create a vertex (Ubigraph::Vertex instance), optionally with hash of parameters.
These class methods create an edge (Ubigraph::Edge instance), optionally with hash of parameters.
The following method removes the vertex.
The following methods change the corresponding vertex parameters.
The following method removes the edge.
The following methods change the corresponding edge parameters.
For the details of the parameters, users should refer to the UbiGraph XML-RPC Manual (http://ubietylab.net/ubigraph/content/Docs/index.html).
Kazuharu Arakawa <gaou@sfc.keio.ac.jp> Kazuki Oshita <cory@g-language.org>
Copyright (C) 2008 by Kazuharu Arakawa
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Ubigraph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ubigraph
CPAN shell
perl -MCPAN -e shell install Ubigraph
For more information on module installation, please visit the detailed CPAN module installation guide.