How can I find a cyclic path in a graph

93 Views Asked by At

Is there any algorithm or approach to find a cyclic path within a graph, optimizing some cost function, e. g. maximizing a reward associated with edges. The optimal cyclic path would then be the one collecting most reward