greatest distribution of samples

Hi there

OK, this may be a little tricky to explain so bear with me.

Imagine a 'class' that contains samples. Each sample may, or may not, be related to other samples in different classes.

I have a number of bar charts - one for each 'class' - that show how many samples is related to other samples in a different class.

Data looks like this

Class 1 data:

0 345

1 564

2 34

6 12

and so on

What the above tells you is that for class 1, there are 345 samples that are not related to any samples in a different class, 34 samples that are related to 2 samples in a different class and so on ...

I need to find a method that tells me which class has samples that are related to the greatest number of samples from other classes and also get a general feeling for the distribution of samples being related to other samples in different classes for each graph.

I considered standard deviation but have a feeling that won't tell me much.

Thanks a lot for any help