Indirect Connected vertices in a digraph

Maybe this example helps you:

using Graphs
G = CliqueGraph(3,4)
has_path(G,1,2)

It is much easier to help you if you post the code you already tried. See e.g. Please read: make it easier to help you
Also the documentation might help:
https://juliagraphs.org/Graphs.jl/dev/pathing/

3 Likes