Description Objects from the Class Slots Methods Author(s) See Also Examples
This class allows one to represent a connection to a Ubigraph server. It identifies the machine and port number for the connection. We also store a CURL connection that we can reuse across XML-RPC method calls and this leads to great efficiencies as we do not have to reopen a connection each time.
The primary motivations for this are the efficiency of caching the
CURL connection, and to allow users to invoke the XML-RPC methods in
the form server$method
, e.g. server$newEdge
and to have
the server connection be implicitly made available to the
correesponding R functions.
Objects of class Ubigraph
should be created
via the Ubigraph
function.
server
:Object of class "character"
this
contains the URL of the server, including the TCP/IP port.
curl
:Object of class "CURLHandle"
a connection
object which is used to implement the XML-RPC method calls
signature(x = "Ubigraph")
: ...
Duncan Temple Lang
newEdge
, newVertex
,
setAttributes
1 2 3 4 5 6 7 8 9 10 11 | if(runUbigraph(error = FALSE)) {
g = Ubigraph()
a = g$newVertex()
b = g$newVertex( shape = 'torus', color = 'yellow')
e = g$newEdge(a, b)
g$setAttributes(e, color = 'red', fontsize = 18)
g$removeEdge(e)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.