Qurak

FindCycle

Disponibile

Find cycles in a graph or list of edges returning each cycle as a list of edges

FindCycle[g]
FindCycle[g, k]
FindCycle[g, {k}]
FindCycle[g, {kmin, kmax}]
FindCycle[g, kspec, s]
FindCycle[{g, v}, …]
FindCycle[{v -> w, …}, …]
FindCycle[{2 -> 1, 1 -> 4, 3 -> 2, 2 -> 5, 6 -> 3, 5 -> 4, 4 -> 7, 6 -> 5, 8 -> 5, 6 -> 9, 7 -> 8, 7 -> 10, 9 -> 8, 11 -> 8, 12 -> 9, 10 -> 11, 12 -> 11}] → {{4  7, 7  8, 8  5, 5  4}}FindCycle[{g, 1}] → {}

Argomenti

Correlate

Tutte le 6300 funzioni · Usa questo da un client MCP