@Test
public void testSpecial1DirectedGraphClusteringCoefficient() {
GraphModel graphModel=Lookup.getDefault().lookup(GraphController.class).getGraphModel();
DirectedGraph directedGraph=graphModel.getDirectedGraph();
Node node1=graphModel.factory().newNode("0");
Node node2=graphModel.factory().newNode("1");
Node node3=graphModel.factory().newNode("2");
Node node4=graphModel.factory().newNode("3");
directedGraph.addNode(node1);
directedGraph.addNode(node2);
directedGraph.addNode(node3);
directedGraph.addNode(node4);
Edge edge12=graphModel.factory().newEdge(node1, node2);
Edge edge23=graphModel.factory().newEdge(node2, node3);
Edge edge24=graphModel.factory().newEdge(node2, node4);
Edge edge31=graphModel.factory().newEdge(node3, node1);
Edge edge34=graphModel.factory().newEdge(node3, node4);
Edge edge41=graphModel.factory().newEdge(node4, node1);
directedGraph.addEdge(edge12);
directedGraph.addEdge(edge23);
directedGraph.addEdge(edge24);
directedGraph.addEdge(edge31);
directedGraph.addEdge(edge34);
directedGraph.addEdge(edge41);
DirectedGraph hgraph = graphModel.getDirectedGraph();
ClusteringCoefficient cc = new ClusteringCoefficient();
ArrayWrapper[] network = new ArrayWrapper[4];
int[] triangles = new int[4];
double[] nodeClustering = new double[4];