Learn R Programming

dnet (version 1.0.0)

dDAGtip: Function to find the tip node(s) of a direct acyclic graph (DAG)

Description

dDAGtip is supposed to find the tip node(s) of a direct acyclic graph (DAG; an ontology). It return the name (i.e Term ID) of the tip node(s).

Usage

dDAGtip(g)

Arguments

g
an object of class "igraph" or "graphNEL"

Value

    • tip: the tip name (i.e. Term ID)

See Also

dDAGtip

Examples

Run this code
# 1) load GO Molelular Function as igraph object
load(url("http://dnet.r-forge.r-project.org/data/Obo/ig.GOMF.RData"))
g <- ig.GOMF

# 2) find tips
tips <- dDAGtip(g)

Run the code above in your browser using DataLab