MCPcopy Create free account
hub / github.com/argumentcomputer/ix / full

Method full

crates/kernel/src/shard.rs:446–457  ·  view source on GitHub ↗
(h: &Hypergraph, cap: u64)

Source from the content-addressed store, hash-verified

444 /// balance weights: each block's heartbeats capped at `cap` (or all 1 if every
445 /// capped weight is zero in this sub)
446 bw: Vec<u64>,
447 /// restricted nets: (weight, local pins)
448 nets: Vec<(u64, Vec<u32>)>,
449 /// local vertex -> incident net indices
450 vnets: Vec<Vec<u32>>,
451 /// global per-shard heartbeat target used to cap `bw` (propagated unchanged
452 /// through recursion)
453 cap: u64,
454}
455
456impl SubHyper {
457 fn full(h: &Hypergraph, cap: u64) -> SubHyper {
458 let n = h.num_vertices();
459 let global: Vec<u32> = (0..n as u32).collect();
460 let vw = h.vweight.clone();

Callers

nothing calls this directly

Calls 3

num_verticesMethod · 0.80
cloneMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected