Scilab Function
Last update : 5/9/2006

cluster - calculate the cluster coefficient

### Calling Sequence

  `[averc,c] = cluster(t)`

### Parameters

- `t` : matrix converted by tran function
- `averc` : a real number
- `c` : row vector of the cluster coefficient of nodes of the graph (its size is the number of nodes of the graph)

### Description

  cluster return the cluster coefficient of the given node and the average clustering coefficient of the whole graph.

### Examples

    	  [a b]=ba(6,4,9994);
    	  t=tran(a,b,10000);
    	  [averc c]=cluster(t);

### See Also

`tran` ,

### Authors

  Wubo