Skip to main content

Negative Cycles in Weighted Digraphs

  • Reference work entry
  • First Online:
Encyclopedia of Algorithms
  • 192 Accesses

Years and Authors of Summarized Original Work

  • 1994; Kavvadias, Pantziou, Spirakis, Zaroliagis

Problem Definition

Let \( { G=(V,E) } \) be an n-vertex, m-edge directed graph (digraph), whose edges are associated with a real-valued cost function \( { \textit{w}t:E\to \mathbb{R}} \). The cost, \( { \textit{w}t(P) } \), of a path P in G is the sum of the costs of the edges of P. A simple path C whose starting and ending vertices coincide is called a cycle. If \( { \textit{w}t(C)<0 } \), then C is called a negative cycle. The goal of the negative cycle problem is to detect whether there is such a cycle in a given digraph G with real-valued edge costs, and if indeed exists to output the cycle.   

The negative cycle problem is closely related to the shortest path problem. In the latter, a minimum cost path between two vertices s and t is sought. It is easy to see that an s-t shortest path exists if and only if no s-t path in G contains a negative cycle [1, 13]. It is also well-known that...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Recommended Reading

  • Ahuja R, Magnanti T, Orlin J (1993) Network flows. Prentice-Hall, Englewood Cliffs

    MATH  Google Scholar 

  • Chaudhuri S, Zaroliagis C (1998) Shortest paths in digraphs of small treewidth. Part II: optimal parallel algorithms. Theor Comput Sci 203(2):205–223

    Article  MathSciNet  MATH  Google Scholar 

  • Chaudhuri S, Zaroliagis C (2000) Shortest paths in digraphs of small treewidth. Part I: sequential algorithms. Algorithmica 27(3):212–226

    Article  MathSciNet  MATH  Google Scholar 

  • Cherkassky BV, Goldberg AV (1999) Negative-cycle detection algorithms. Math Program 85:277–311

    Article  MathSciNet  MATH  Google Scholar 

  • Fakcharoenphol J, Rao S (2001) Planar graphs, negative weight edges, shortest paths, and near linear time. In: Proceedings of 42nd IEEE symposium on foundations of computer science (FOCS 2001). IEEE Computer Society, Los Alamitos, pp 232–241

    Google Scholar 

  • Goldberg AV (1995) Scaling algorithms for the shortest paths problem. SIAM J Comput 24:494–504

    Article  MathSciNet  MATH  Google Scholar 

  • Goldberg AV, Radzik T (1993) A heuristic improvement of the Bellman-Ford algorithm. Appl Math Lett 6(3):3–6

    Article  MathSciNet  MATH  Google Scholar 

  • Kavvadias D, Pantziou G, Spirakis P, Zaroliagis C (1994) Efficient sequential and parallel algorithms for the negative cycle problem. In: Algorithms and computation (ISAAC’94). Lecture notes computer science, vol 834. Springer, Heidelberg, pp 270–278

    Google Scholar 

  • Klein P, Rao S, Rauch M, Subramanian S (1997) Faster shortest path algorithms for planar graphs. J Comput Syst Sci 5(1):3–23

    MathSciNet  MATH  Google Scholar 

  • Kolliopoulos SG, Stein C (1998) Finding real-valued single-source shortest paths in o(n3) expected time. J Algorithm 28:125–141

    Article  MathSciNet  MATH  Google Scholar 

  • Mehlhorn K, Näher S (1999) LEDA: a platform for combinatorial and geometric computing. Cambridge University Press, Cambridge

    MATH  Google Scholar 

  • Spirakis P, Tsakalidis A (1986) A very fast, practical algorithm for finding a negative cycle in a digraph. In: Proceedings of 13th ICALP, pp 397–406

    Google Scholar 

  • Tarjan RE (1983) Data structures and network algorithms. SIAM, Philadelphia

    Book  MATH  Google Scholar 

  • Wong CH, Tam YC (2005) Negative cycle detection problem. In: Algorithms – ESA 2005. Lecture notes in computer science, vol 3669. Springer, Heidelberg, pp 652–663

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer Science+Business Media New York

About this entry

Cite this entry

Zaroliagis, C. (2016). Negative Cycles in Weighted Digraphs. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, New York, NY. https://doi.org/10.1007/978-1-4939-2864-4_257

Download citation

Publish with us

Policies and ethics