pub type WeightedIndex = (IndexId, IndexSize);
Represents a weighted-indexed edge in a tensor network.
This provides the core index information for contraction ordering solvers.