bidirectedEdgesMatrix R
This method returns the $n \times{} n$ covariance matrix of the noise variables in the Gaussian graphical model. The diagonal in this matrix consists of the indeterminates $p_{(i,i)}$. Each offdiagonal entry is zero unless there is a bidirected edge between i and j in which case the corresponding entry in the matrix is the indeterminate $p_{(i,j)}$. The documentation of gaussianRing further describes the indeterminates $p_{(i,j)}$.




For mixed graphs that also have undirected edges, the size of the matrix coincides with the number of elements in compW, which depends on the vertex partition built in partitionLMG.



Bidirected graphs can also be considered:



The object bidirectedEdgesMatrix is a method function.