UbigraphID-class: Identifiers for Ubigraph vertices and edges

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

Description

Objects in a Ubigraph display are identified by a unique identifier which is an integer. These classes represent such an identifier and also identify the type of object it identifies, i.e. a vertex or edge.

Objects from the Class

Objects of these classes are typically obtained via calls to newVertex and newEdge.

Slots

.Data:

these are (currently) simple scalar integers

Extends

Class "integer", from data part. Class "vector", by class "integer", distance 2. Class "numeric", by class "integer", distance 2. Class "data.frameRowLabels", by class "integer", distance 2.

Methods

$<-

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

[<-

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

[[<-

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

Author(s)

Duncan Temple Lang

References

~put references to the literature/web site here ~

See Also

Ubigraph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if(isUbigraphRunning()) { # just for testing the example
   id = newVertex()
   setAttributes(id, color = 'red', shape = 'torus', label = 'A torus', size = 2)

   id$color = "blue"
   id$fontsize = 18

   id[c("fontsize", "color")] = c(12, "red")

   color(id) = "orange"
   fontsize(id) = 22
}

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