deleteEdge {clipper}R Documentation

Remove an edge from graphNel object.

Description

Remove from a graphNEL object the edge specified.

Usage

deleteEdge(graph, from, to)

Arguments

graph

a graphNEL object.

from

a string with the name of the node where the edge start.

to

a string with the name of the node where the edge end.

Value

a graphNEL object.

Examples

if (require(graphite)) {
  kegg  <- pathways("hsapiens", "kegg")
  graph <- pathwayGraph(convertIdentifiers(kegg$'Chronic myeloid leukemia', "entrez"))
  head(edges(graph))
  ## We are going to remove the edge 1026-1019
  head(edges(deleteEdge(graph, "ENTREZID:1026", "ENTREZID:1019")))
}

[Package clipper version 1.20.1 Index]