A graph framework