Extract all the paths to 0. Each of them must be translated into a clause.
Let ¬A, B, C be one of your 0-paths. The relative clause will be (A ∨ ¬B ∨ ¬C).
Once you have all the clauses, simply put an ∧ between them!
The algorithm is the same that you use to calculate a CNF from a truth table.