dDAGreverse: Function to reverse the edge direction of a direct acyclic graph (DAG)
Description
dDAGreverse is supposed to reverse the edge direction of a
direct acyclic graph (DAG; an ontology). The return graph remains all
attributes associated on nodes and edges.
Usage
dDAGreverse(g)
Arguments
g
an object of class "igraph" or "graphNEL"
Value
gr: a graph being reversed, an object of class "igraph" or
"graphNEL"
# NOT RUN {# 1) load HPPA as igraph objectig.HPPA <-dRDataLoader(RData='ig.HPPA')
g <- ig.HPPA
# 2) the graph with reverse edge directiongr <- dDAGreverse(g)
gr
# }