Finding hypernetworks in directed hypergraphs