Imagine i have a graph called G.
G has some parts. In one part, every node describes a person. I have another part in G which contains interests as nodes. ( Imagine that person A likes music. So, there is an edge between A and M )
I have some other parts in my graph like cities. What i want is not a simple DFS or something like Dijkstra's shortest path algorithm. I want to implement an special kind of search.
For example, i want to know, how two persons are connected to each other. Imagine A likes Music. B likes Football. A & B are in the same school. So, if A wants to learn how to play Football, he should go to school, then he see B and after that, he can learn playing Football from B.
Another Example, Maybe i want to search in the graph without an specific node. I mean maybe somehow i don't want a node in my shortest path.
Note : My question is somehow general but i want to know if there exists some kind of algorithm or a way to implement these searches in a good order.