Unboxing the black box: Graph-based interpretability in transformer models