Clone a directed graph