Added triangle counting for directed graphs