“…Nanofoams exhibit ultralow density [1] (1−100 mg/cm 3 ) and extremely high surface-to-volume ratio, which make them of interest for many research fields of great societal and technological importance, such as hydrogen storage [2], next generation supercapacitors [3] and catalysts [4,5], water treatment [6], gas sensing [7], and medicine [8]. In the past years, nanofoam materials derived from different elements have been investigated, namely noble metals [2,9], transition metals [3][4][5], oxides [10,11], semiconductors [12], and organic compounds. Among them, carbon (C) nanofoams have attracted an impressive amount of research efforts because of their unusual and appealing features, like an unconventional ferromagnetic behavior [13,14], giant optical absorption [15], and an increased adsorption and storage capability [16], together with the unique carbon capability of forming chemical bonds that are very different in their nature (i.e., sp 1 , sp 2 , and sp 3 hybridization).…”