sgChVIDs | R Documentation |
Change the field "ID" in the vertex slot, v
, of a
SpatialGraph. The fields v0
and v1
of the edge
slot, e
, are accordingly updated
sgChVIDs(obj, IDa, IDp = NULL)
obj |
A SpatialGraph object |
IDa |
A vector indicating the updated vertex IDs |
IDp |
A vector indicating the prior vertex IDs |
If IDp
is not provided, it is assumed that the vector of
updated indexes is sorted equally to the order in which the vertices
are stored in the slot v
of the SpatialGraph. If
IDp
is provided, the mapping IDp -> IDa is used
for reclassifying the vertices.
A SpatialGraph object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.