So I have an adjacency matrix for a directed graph and I want to find cliques in the graph. What I do is make the adjacency matrix symmetric then cube it; after which I look at the diagonal entries, and if they're positive, it means that the vertex at that entry is in some clique. What I'm trying to figure out is how to distinguish between different cliques and know which vertices go in which cliques.
Edit: if P is connected to Q, and Q is connected to P, then P and Q are in a clique.