Scilab Function
Last update : 5/9/2006

assc - calculate the assortative mixing parameter in Networks purposed by M.E.J. Newman

### Calling Sequence

  `r = assc(a,b,n)`

### Parameters

- `a` : row vector of the numbers of the tail nodes of the graph (its size is the number of edges of the graph)
- `b` : row vector of the numbers of the head nodes of the graph (its size is the number of edges of the graph)
- `n` : interger
- `r` : a real number

### Description

  A network is said to show assortative mixing if the nodes in the network that have many connections tend to be connected to other nodes with many connections, and show disassortative mixing reversely. Here when r>0, network is assortative, when r is small than 0, network is disassortative.

### Examples

    	  [a b]=ba(6,4,9994);
    	  r=assc(a,b,10000)

### Authors

  Wubo