Fixed prototype of method so as to use ContextPatterns, not ContextGraphs.

WARNING: implementation is not yet checked.
Updated testing files.