Email (record): Algorithms for effective querying of compound graph-based pathway databases