Learn R Programming

gRbase (version 1.7-5)

mpd: Maximal prime subgraph decomposition

Description

Finding a junction tree representation of the MPD (maximal prime subgraph decomposition) of an undirected graph

Usage

mpd(object, tobject = minimalTriang(object), details = 0) mpdMAT(amat, tamat = minimalTriangMAT(amat), details = 0)

Arguments

object
An undirected graph; a graphNEL object
tobject
Any minimal triangulation of object; a graphNEL object
amat
An undirected graph; a symmetric adjacency matrix
tamat
Any minimal triangulation of object; a symmetric adjacency matrix
details
The amount of details to be printed.

Value

A list with components "nodes", "cliques", "separators", "parents", "children", "nLevels". The component "cliques" defines the subgraphs.

Details

The maximal prime subgraph decomposition of a graph is the smallest subgraphs into which the graph can be decomposed.

References

Kristian G. Olesen and Anders L. Madsen (2002): Maximal Prime Subgraph Decomposition of Bayesian Networks. IEEE TRANSACTIONS ON SYSTEMS, MAN AND CYBERNETICS, PART B: CYBERNETICS, VOL. 32, NO. 1, FEBRUARY 2002

See Also

mcs, mcsMAT, minimalTriang, minimalTriangMAT, rip, ripMAT, triangulate, triangulateMAT

Examples

Run this code
## Maximal prime subgraph decomposition - a graphNEL object
g1 <- ug(~a:b+b:c+c:d+d:e+e:f+a:f+b:e)
if (interactive()) plot(g1)
x <- mpd(g1)

## Maximal prime subgraph decomposition - an adjacency matrix
g1m <- ug(~a:b+b:c+c:d+d:e+e:f+a:f+b:e, result="matrix")
if (interactive()) plot(as(g1m, "graphNEL"))
x <- mpdMAT(g1m)


Run the code above in your browser using DataLab