DG function

Directed graphs