isomap_ordering.RdLandmark approximation to Isomap for fast ordering. Builds a weighted kNN graph
on rows of X, computes geodesic distances to a subset of landmark points,
embeds landmarks by classical MDS, then projects all points by inverse-distance
weighted averaging.
numeric matrix (n x D).
number of nearest neighbors in the kNN graph (2 <= k < n).
embedding dimension (>= component).
which embedding coordinate to use as ordering.
integer; number of landmark points. If NULL, uses min(1000, n).
how to choose landmarks: "random" (default) or "kmeans".
optional integer for reproducibility.
component handling: "giant" keeps the largest connected component;
"all" uses all nodes (may yield Inf distances if disconnected).
if TRUE, return length-n t with NA for excluded nodes (keep="giant").
logical; if TRUE, flip sign to align with PC1.
logical; if TRUE, rescale returned t to [0,1].
small positive number to stabilize inverse-distance weights.
list(t, keep_idx, n_components, embed, landmark_idx, geodesic_to_landmark)