I seem to finally have managed to generate of all cliques in a graph (I had to install R for this, all new to me!).
However now I need to export this list of cliques and I don't know how to tackle this. My code is as follow:
wt=read.table("data.txt")
wt1=matrix(nrow=nrow(wt), ncol=2)
wt1=data.frame(wt1)
wt1[,1:2]=wt[,1:2]
write.table(wt1,"test.txt")
library(igraph)
wt=read.table("test.txt")
wg7<- graph.edgelist(cbind(as.character(wt$X1), as.character(wt$X2)),
directed=F)
sum(clusters(wg7)$csize>2)
plot(wg7)
Allcliks <- cliques(wg7, min = NULL, max = NULL)
Can anybody help me to find the code which will export this list in an excel file? Ideally I would like to have each clique on a new row.
In advance Many Thanks!!!