Hydra formulas and directed hypergraphs