Last chance! 50% off unlimited learning
Sale ends in
new("distGraph", ...)
.Dist
:"dist"
that forms the
basis for the edge weights used in the distGraph
."graph"
, directly.signature(object = "distGraph")
: a print methodsignature(object = "distGraph")
: return the dist
object. signature(object = "distGraph")
: find the nodes
adjacent to the supplied node. signature(object = "distGraph")
: return the
nodes in the graph. signature(object = "distGraph")
: return the
number of nodes. signature(object = "distGraph", k, value)
: set all
distances that are larger than the supplied threshold, k
, to the
supplied value. The default is value is zero (and so is appropriate for
similarities, rather than distances). signature(object = "distGraph")
:
initialize a distGraph
instance. edges
method.signature(graph = "distGraph")
: A method for
obtaining the edge list.graph-class
, clusterGraph-class
set.seed(123)
x <- rnorm(26)
names(x) <- letters
library(stats)
d1 <- dist(x)
g1 <- new("distGraph", Dist=d1)
Run the code above in your browser using DataLab