Generalization of the Discrete Methods to Arbitrary Networks