setEdgeAttributes: Assign the supplied edge attribute values to the graph...

View source: R/cyjShiny.R

setEdgeAttributesR 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)


cyjShiny documentation built on March 31, 2023, 10:24 p.m.