add a new model of graphic transition  that handle main path and nearest nodes