functional graph 閉路