I have skimmed a few introductions to "search problems", and I have noticed that:
Stated informally search problems are defined as "find an object y inside a larger space/object X"
But when defining exact algorithms, search problems are thought of as "search inside a graph" or more specifically "finding a path inside a graph".
The texts I have read don't clearly explain the jump from 1 to 2 (at least not clear to me).
For example, wikipedia's search problem page states: Generic search algorithm: given a graph, start nodes, and goal nodes, incrementally explore paths from the start nodes. But also in textbooks such as Artificial Intelligence: A Modern Approach (Russell & Norvig), and others.
Why is this? Can we always represent any search problem as "search for a path inside a graph"? I am having trouble to see how. It seems very specific to focus specifically on path search in graphs. Aren't there many other types of search? (e.g. find a pattern in an image, or find a substrring in a string, or find an efficient algorithm that computes a function, etc).