floydWarshall now supports adding macro