Parallel recognition algorithms for graphs with restricted neighborhoods