is.chaingraph {lcd} | R Documentation |
Checks if a given graph is a chain graph.
is.chaingraph(amat)
amat |
the adjacency matrix of the graph with dimnames. |
result |
a logical value, TRUE if the given graph is a valid
chain graph and FALSE otherwise. |
vert.order |
a topological order of the graph vertices. |
chain.size |
a vector indicating the size of each chain
component in the graph, whose order corresponds to vert.order . |
Zongming Ma and Xiangrui Meng
Cowell, R. G., Dawid, A. P., Lauritzen, S. L. and Spiegelhalter, D. J. (1999) Probabilistic Networks and Expert Systems. Springer-Verlag, New York.
data(lcd) is.chaingraph(toy.graph)