AB graph generator