File: prunemst.Rd

package info (click to toggle)
r-cran-spdep 1.1-5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,012 kB
  • sloc: ansic: 1,489; sh: 16; makefile: 2
file content (38 lines) | stat: -rw-r--r-- 1,260 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\name{prunemst}
\alias{prunemst}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Prune a Minimun Spanning Tree}
\description{
  This function deletes a first edge and makes two subsets of edges. Each
  subset is a Minimun Spanning Treee.
}
\usage{
prunemst(edges, only.nodes = TRUE)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{edges}{A matrix with two colums with each row is one edge}
  \item{only.nodes}{If \code{only.nodes=FALSE}, return a edges and nodes
  of each MST resulted. If \code{only.nodes=TRUE}, return a two sets of
  nodes. Defalt is TRUE} 
}
%%\details{}
\value{
  A list of length two. If \code{only.nodes=TRUE} each element is a
  vector of nodes. If \code{only.nodes=FALSE} each element is a list with
  nodes and edges.
}
%%\references{ ~put references to the literature/web site here ~ }
\author{Elias T. Krainski and Renato M. Assuncao}
%%\note{ ~~further notes~~ }
\seealso{ See Also as \code{\link{mstree}} }
\examples{
e <- matrix(c(2,3, 1,2, 3,4, 4,5), ncol=2, byrow=TRUE)
e
prunemst(e)
prunemst(e, only.nodes=FALSE)
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{tree}
\keyword{cluster}% __ONLY ONE__ keyword per line