Closed Gordon-Sau closed 7 months ago
I am going to add some theorems related to strongly connected components to make it more reusable. The definition of SCC is SCC E x y = RTC E x y /\ RTC E y x
.
Thanks for this. The SCC
notion feels like it could be moved to relationTheory
, but that can be done later.
has_cycle
which checks if there are cycles in the graphtop_sort
is connected.TC_depends_on
(a TC version of depends_on) andTC_depends_on_weak
(which removes theMEM b (MAP FST graph)
condition fromTC_depends_on
)has_cycle
(has_cycle_correct
andhas_cycle_correct2
)