finished BA graph generator, needs testing