Add getPreAddEdge to GraphStrategy.

Used the javatuples lib so that GraphStrategy could normalized to Function<T,T>.
Add getPostAddEdge to GraphStrategy.