The structure of a gel network can be conceptualised as a random graph. This analogy is exploited to calculate the gel point and gel fraction for monomer precursors with arbitrary types of functional groups. Random graphs can be used to derive analytical expressions for simple polymerisation mechanisms, such as step-growth polymerisation, or alternatively, they can be combined with a system of rate equations that are integrated numerically.