Flow graph model for performance estimation