Constructs a musculoskeletal hypergraph from an incidence matrix. In this hypergraph, bones are vertices and muscles are hyperedges. A muscle (hyperedge) connects all bones it attaches to.
Value
An S3 object of class "MSKHypergraph" containing:
- C
Sparse incidence matrix (bones x muscles)
- n_bones
Number of bones (vertices)
- n_muscles
Number of muscles (hyperedges)
- bone_names
Character vector of bone names
- muscle_names
Character vector of muscle names
- muscle_meta
Muscle metadata if provided