initial implementation of connection graph matcher