I'm using a custom graph to represent a set of data, as shown in the figure:
I have already created several methods that allow me to fill the structure. The main objective of this type of representation is to know quickly if a specific path exists. I have the following problem with the path search method:
For example, if I consider the paths "A-> D-> X", "B-> D -> #", "A-> E -> #", "A-> D -> #", then I would like to obtain the existence of the paths. However, if I consider the path "B -> D -> X", I would like to get that the path does not exist.
Do you have any suggestions for developing this type of method without considering the initial data set?
