I wonder if anyone could tell me how I can plot a Minimum Spanning Tree
using the functions provided in the "graph" and "RBGL" packages?

I am able to build the MST using the following set of commands:

> library(graph)

> library(RBGL)

> x <- read.table("h:/pole.tab",header=T,row.names=1)

> y <- dist(x)

> g1 <- new("distGraph",y)

> g2 <- mstree.kruskal(g1)

However, there doesn't seem to be a function that allows the command
"plot(g2)" to draw it.

Many thanks,

Andrew Wilson

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to