Here is a simple solution that should give you a taste of how to solve the problem. Whether this solution is satisfactory would depend on your actual application.
If you want to determine how usual or unusual your distance matrix is compared to other arrangements of the points then you can use the following approach. You will need a measure of how well any set of red and green points are clustered. A very simple metric would be as follows.
Initialise the metric to zero.
Foreach data point
If the nearest neighbour of a point is in a different group (ie different colour) then add this distance to the metric.
Now, you can label the data points randomly with red or green and work out the metric for a random labelling.
Repeat this random labelling many times and record the metric each time, allowing you to determine distribution statistics for the metric.
You can also calculate the metric for your actual set of data points and compare this to the distribution of metric data.
Some things to note. If you have two tightly clustered groups that are well separated then the metric would be zero....ie all neighbours belong to the same group.
The metric can be as simple as I described or more complex, depending on the application of the results. This sort of random reladelling is common. If you have a relatively small number of points you could work out the metric for all possible permutations.
You can find more on this topic here http://en.wikipedia.org/wiki/Resampling_(statistics)