On recognition algorithms and structure of graphs with restricted induced cycles