Advancing Deep Learning with Graph-Based Structural Insights: From Graph Classification to Semantic Segmentation