Geometry, topology, and statistics of mechanical networks