Add a simple graph matcher.