setEdgeAttributes {cyjShiny}R Documentation

Assign the supplied edge attribute values to the graph structure contained in the browser.

Description

Assign the supplied edge attribute values to the graph structure contained in the browser.

Usage

setEdgeAttributes(
  session,
  attributeName,
  sourceNodes,
  targetNodes,
  interactions,
  values
)

Arguments

session

a Shiny Server session object.

attributeName

character string, the attribute to update.

sourceNodes

a character vector, the names of the source nodes of the edges

targetNodes

a character vector, the names of the target nodes of the edgees

interactions

a character vector, further identifying the specific edge whose attributes are updated.

values

a character, logical or numeric vector, the new values.

Value

Nothing

Examples

## Not run: 
setEdgeAttributes(session,
  attributeName = "score",
  sourceNodes = c("A", "B", "C"),
  targetNodes = c("D", "E", "A"),
  interactions = c("promotes", "promotes", "inhibits"),
  values = new.scores
)

## End(Not run)


[Package cyjShiny version 1.0.42 Index]