Principal Graph Encoder Embedding and Principal Community Detection