package main

import "fmt"

func eventualSafeNodes(graph [][]int) []int {
	ret := make([]int, 0)
	m := make(map[int]bool)
	for k, v := range graph {

	}

	return []int{}
}

func main() {
	fmt.Println(eventualSafeNodes([][]int{[]int{1, 2}, []int{2, 3}, []int{5}, []int{0}, []int{5}, {}, {}}))
}
