Description Usage Arguments Value Author(s) References Examples
The function lists the edges of an forest generated by Kruskal's algorithm given its weight matrix in which each weight should be symmetric but may be negative. The forest is a spanning tree if the elements of the matrix take positive values.
1 | kruskal(W)
|
W |
a matrix. |
A matrix object of size n x 2 for matrix size n x n in which each row expresses an edge when the vertexes are expressed by 1 through n.
Joe Suzuki and Jun Kawahara
[1] Suzuki. J. “The Bayesian Chow-Liu algorithms", In the sixth European workshop on Probabilistic Graphical Models, pp. 315-322, Granada, Spain, Sept.2012.
1 2 3 4 5 6 7 8 9 |
Loading required package: bnlearn
Attaching package: 'bnlearn'
The following object is masked from 'package:stats':
sigma
Loading required package: igraph
Attaching package: 'igraph'
The following objects are masked from 'package:bnlearn':
compare, degree, path, subgraph
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
[,1] [,2]
[1,] 6 3
[2,] 2 4
[3,] 2 5
[4,] 4 6
[5,] 6 7
[6,] 5 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.