Add gen adjecent function

Change-Id: I776bf082179895ca403bfc01a328621f9ccc0c93
Modify twin twig generate mechanism. 
Curretnly twin twig all of types could be generated on the fly. 

Change-Id: I1f5f14d896415db9e7e23bea4ee1cf5d67eff548