Last chance! 50% off unlimited learning
Sale ends in
Transforms the adjacency matrix of a graph into an ``edge matrix''.
edgematrix(E, inv=FALSE)
a square matrix, representing the adjacency matrix of a graph.
a logical value.
the edge matrix of the graph.
If TRUE
the nodes are sorted in
inverted topological order and the edge matrix is upper triangular.
In some matrix computations for graph objects the adjacency matrix
of the graph is transformed into an ``edge matrix''. Briefly,
if
Wermuth, N. (2003). Analysing social science data with graphical Markov models. In: Highly Structured Stochastic Systems. P. Green, N. Hjort \& T. Richardson (eds.), 47--52. Oxford: Oxford University Press.
# NOT RUN {
amat <- DAG(y ~ x+z, z~u+v)
amat
edgematrix(amat)
edgematrix(amat, inv=TRUE)
# }
Run the code above in your browser using DataLab