Network Inference with Applications in Neuroimaging