how to partition mst of iris dataset to obtain sub graphs in r -



how to partition mst of iris dataset to obtain sub graphs in r -

i'm new r , can give thought of how obtain sub graphs iris dataset mst tree? here have done little code obtaining mst tree iris dataset.. dono how proceed farther obtain sub trees of original mst tree.. here code..

library(cluster) library(igraph) data<-(iris) g<-graph.data.frame(data,directed=false) plot(g,layout=layout.fruchterman.reingold,edge.label=e(g)$weight) mst<-minimum.spanning.tree(g) plot(mst,layout=layout.reingold.tilford,edge.label=e(mst)$weight)

r

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -