Let $G$ be a graph and let $v$ be a vertex. Is there a polynomial algorithm for the following operation?
Operation. Find all the induced paths in $G$ with first vertex $v$.
Background
This problem is the confusion I encountered while reading the article Induced paths in graphs without anticomplete cycles. The authors asserted that there is a polynomial algorithm to check whether a graph contains no two non-adjacent cycles (and more generally no k non-adjacent cycles). Their algorithm is as follows:
- For each vertex $v$, find all the induced paths with first vertex $v$.
- For each induced path $P$, find all induced cycles that consist of $P$ and one extra vertex.
- Check whether any two of these cycles are disjoint and have no edges between them.
I am puzzled by the first step. If that's the case, then I think that finding the longest induced path in a graph would be possible with a polynomial algorithm. But as far as I know, it is NP-hard. See https://en.wikipedia.org/wiki/Induced_path