Nonparametric Detection of Geometric Structures over Networks