Ubigraph-class: A class to represent a Ubigraph server object

Description Objects from the Class Slots Methods Author(s) See Also Examples

Description

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 from the Class

Objects of class Ubigraph should be created via the Ubigraph function.

Slots

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

Methods

$

signature(x = "Ubigraph"): ...

Author(s)

Duncan Temple Lang

See Also

newEdge, newVertex, setAttributes

Examples

 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)
}

omegahat/RUbigraph documentation built on May 24, 2019, 1:55 p.m.