Constructing, comparing, and reconstructing networks