#state graph framework