GNet: A generalized network model and its applications in qualitative spatial reasoning