add pattern grow with a edge.