graph-operations1 {gRbase}R Documentation

Simple operations on undirected and directed acyclic graphs.

Description

Make operations on undirected and directed acyclic graphs.

Usage

as.adjMAT(object)

ancestors(set, object)
ancestralGraph(set, object)
ancestralSet(set, object)
children(set, object)
closure(set, object)
edgePairs(object)
edgeList(object,matrix=FALSE)
nonEdgeList(object, matrix=FALSE)
is.complete(object, set)
is.decomposition(set, set2, set3, object)
is.simplicial(set, object)
parents(set, object)
simplicialNodes(object)

Arguments

set, set2, set3 Vectors of sets
object A graph nel object
matrix If TRUE the result is returned as a p x 2 matrix; otherwise as a matrix list.

Details

Notice that as.adjMAT(g) does the same as as(g, "matrix") but as.adjMAT() is considerably faster.

Author(s)

Søren Højsgaard, sorenh@agrsci.dk

See Also

MCS RIP moralize jTree

Examples

ugr <- ug(~me:ve,~me:al,~ve:al,~al:an,~al:st,~an:st)
closure("me", ugr)

[Package gRbase version 0.6.4 Index]