Funicular analysis is extensively adopted to assess masonry vaults and domes, especially those of historical interest. Surface structures (e.g., shells) are modelled as statically indeterminate networks experiencing only compressive stresses. The no-tension networks are supported along the boundary and are in equilibrium with vertical and horizontal loads applied at the nodes. Following the lower bound theorem of limit analysis, the structure is safe if a thrust network lying between the extrados and the intrados of the vault can be found. In this paper, a minimization problem is formulated for networks of general shape with fixed plan geometry, subjected to arbitrary loads. The Maxwell number (i.e., the sum of the force-times-length produc...