Dijiktras Algorithm does'nt work on a graph with negative cycles it can be modified to work in case of negative edges by removing the visited array.
consider a graph like below:-
(u,v,w)->representation u to v their is a edge with weight w.
(1,2,-1) (2,3,5) (1,3,2)