bagraph