Add pattern graphs