build.weighted.misf() builds the weighted max-independent-set
filtration used by the weighted GRIP layout core. It is primarily a
diagnostic and benchmarking helper for comparing weighted and combinatorial
hierarchies on the same graph.
Usage
build.weighted.misf(
edges = NULL,
n = NULL,
adj_list = NULL,
weight_list = NULL,
edge_weights = NULL,
num_init = 24,
num_nbrs = 20,
length_normalization = c("median", "mean", "none"),
seed = 6
)Arguments
- edges
Two-column integer matrix of edges (1-based vertex ids).
- n
Number of vertices.
- adj_list
Adjacency list (1-based) for undirected graphs.
- weight_list
Parallel list of strictly positive edge lengths.
- edge_weights
Optional vector of edge lengths for
edges.- num_init
Number of initial vertices in the coarsest level.
- num_nbrs
Maximum number of retained local neighbors per level.
- length_normalization
Global edge-length normalization:
"median"(default),"mean", or"none".- seed
Optional RNG seed for reproducibility. If NULL, uses current time.