Random trees and random graphs