OK, here is a little bit more about the type of path I am interested:
I have a graph which has 4 levels of nodes, namely, B, F, E, and V.
All nodes have two properties let say name and dim. Nodes in set V
are only connected to E, and E only to F and F only to B.
So now, I want to know if all paths starting from B to V (or vice versa) have
the maximum length (here 3). Conceptually, it means that some nodes of types
E might not be connected to any F and instead be connected to some B.
This only happens from V to B direction. Another case, some Nodes from
V may be directly connected to B but not to any E or F.
I hope it is clear enough :)
Now, the question is how I check to see there are paths (at least one) of such type, i.e.,
with length less than maximum (3 here)?
Best,
Alireza