Description Objects from the Class Slots Extends Methods Author(s) References See Also Examples
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 of these classes are typically obtained via calls to
newVertex
and newEdge
.
.Data
:these are (currently) simple scalar integers
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.
signature(x = "UbigraphID")
: ...
signature(x = "UbigraphID")
: ...
signature(x = "UbigraphID")
: ...
Duncan Temple Lang
~put references to the literature/web site here ~
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
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.