Robust methods for inferring sparse network structures