
Last chance! 50% off unlimited learning
Sale ends in
mstIrreducible
function obtains the irreducible
form.
mstIrreducible(nodes, arcs)
mstIrreducible
returns a matrix with the list of
arcs of the irreducible form.
# Graph
nodes <- 1:4
arcs <- matrix(c(1,2,6, 1,3,10, 1,4,6, 2,3,4, 2,4,6, 3,4,4),
byrow = TRUE, ncol = 3)
# Irreducible form
mstIrreducible(nodes, arcs)
Run the code above in your browser using DataLab