Allow to generate graph patterns from POPCORN expressions.

Change-Id: Ib9ab771d4d612dd8ee047c7d330663adeba4a675