--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-disc...@googlegroups.com.
To post to this group, send email to cytoscap...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-discuss.
For more options, visit https://groups.google.com/d/optout.
public double findThreeCliques(CyNetwork network) { // finds no.of three cliques List < CyNode > nList = network.getNodeList(); List < CyEdge > eList = network.getEdgeList(); int cliques = 0; for (CyEdge e: eList) { for (CyNode n: nList) { if (network.containsEdge(n, e.getSource()) && network.containsEdge(n, e.getTarget())) { cliques++; } } } return cliques; }