Generic code about graphs, trees and related.