trees and graphs