setAttributes: Set attributes of a Ubigraph object

Description Usage Arguments Value Author(s) See Also

View source: R/api.R

Description

This function sets one or more attributes/properties of an object in a Ubigraph display/graph.

Usage

1
2
3
setAttributes(id, ..., .attrs = list(...),
              .type = if (is(id, "EdgeID")) "edge" else "vertex",
              .server = "http://127.0.0.1:20738/RPC2", curl = getCurlHandle())

Arguments

id

the identifier for the Ubigraph object. This is typically obtained by a call to newVertex or newEdge.

...

name = value pairs giving the attributes and their values.

.attrs

an alternative way to specify the name = value pairs of attributes. This is convenient for programmatic use when the attributes are already in a list.

.type

either "edge" or "vertex" identifying whether the object is an edge or a vertex. We call a different XML-RPC method accordingly.

.server

the server object

curl

a CURLHandle object that we can reuse across XML-RPC calls.

Value

A named logical vector indicating whether each attribute was successfully set.

Author(s)

Duncan Temple Lang

See Also

newVertex, newEdge


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