delete.activity: Remove Timing Information in a Dynamically Extended Network...

delete.activityR Documentation

Remove Timing Information in a Dynamically Extended Network Object

Description

Removes the activity spells of a given set of vertices or edges.

Usage

delete.edge.activity(x, e=seq_along(x$mel))

delete.vertex.activity(x, v=seq_len(network.size(x)))

Arguments

x

an object, of class network or networkDynamic.

e

the edges of x that will have their timing information deleted; default = all.

v

the vertices of x that will have their timing information deleted; default = all.

Details

Though the timing information of the edges and/or vertices may be removed, other networkDynamic methods will assume activity or inactivity across all time points, based on the argument active.default.

Value

An object with the same class as x, equivalent to x without the activity spells of the edges e or the vertices v.

Author(s)

Ayn Leslie-Cook aynlc3@uw.edu, Carter T. Butts buttsc@uci.edu

See Also

activate

Examples

  library(networkDynamic)
  data(flo)
  net1 <- network(flo)
  activate.edges(net1)
  activate.vertices(net1)
  net2 <- net1
  delete.edge.activity(net1, e=seq(2,40,2))
  delete.edge.activity(net2)
  delete.vertex.activity(net2)
  is.active(net1, at=0, e=c(1,2), active.default=FALSE)
  is.active(net1, at=0, e=c(1,2), active.default=TRUE)
  is.active(net2, at=0, e=1:16, active.default=FALSE)
  is.active(net2, at=0, e=1:16, active.default=TRUE)

statnet/networkDynamic documentation built on Jan. 4, 2024, 6:16 a.m.