function d = fanout(G) % G is a DAG d = max(sum(G,2)); return