eda: eda

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/RCytoscape.R

Description

Obtain the value of the specified edge attribute for every edge in the graph.

Usage

1
eda(graph, edge.attribute.name)

Arguments

graph

typically, a bioc graphNEL object

edge.attribute.name

a character string

Details

The edge.attribute.name may be obtained from the function, eda.names.

Value

A list, the contents of which are the attribute values, the names of which are the names of the edges.

Author(s)

Paul Shannon

See Also

eda.names

Examples

1
2
3
4
5
6
7
8
9
g  <- makeSimpleGraph()
eda (g, 'edgeType')

## The function is currently defined as
function (graph, edge.attribute.name)
{
  unlist (sapply (names (edgeData (graph)), function (n) edgeData (graph)[[n]][[edge.attribute.name]]))

  } # eda

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.