Finding common structured patterns in linear graphs.