GIFgraph.pm - example 3-1
The code.
NOTE
Notice that the green set doesn't have an entry for the 7th point.