Exploring the Frontier of Graph-based Approaches for Image and Document Analysis