Hypernetworks in a directed hypergraph