The random cluster model on finite graphs