finish trees and graphs