A Joint Community Detection Model: Integrating Directed and Undirected Probabilistic Graphical Models via Factor Graph with Attention Mechanism