Learn R Programming

gRbase (version 1.7-5)

graph-operations: Simple operations on undirected and directed acyclic graphs.

Description

Make operations on undirected and directed acyclic graphs (which are represented as graphNEL objects.

Usage

ancestors(set, object) ancestralGraph(set, object) ancestralSet(set, object) children(set, object) closure(set, object) 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 graphNEL object

Details

Notice: graphNEL2adjMAT(g, result="matrix") and graphNEL2adjMAT(g, result="Matrix") do the same as as(g, "matrix") and as(g, "Matrix") but considerably faster.

See Also

edgeList nonEdgeList mcs rip moralize jTree

Examples

Run this code
uG <- ug(~me:ve,~me:al,~ve:al,~al:an,~al:st,~an:st)
closure("me", uG)
getCliques( uG )

amat1 <- graphNEL2M( uG )
getCliques( amat1 )

amat1 <- graphNEL2M( uG, result="Matrix" )
getCliques( amat1 )

Run the code above in your browser using DataLab