Class NegativeCycleException

All Implemented Interfaces:
Serializable

public class NegativeCycleException extends RuntimeException
Author:
Cristian Frăsinaru
See Also:
  • Constructor Details

    • NegativeCycleException

      public NegativeCycleException(Cycle cycle)
      Parameters:
      cycle - the negative cost cycle that was detected.
  • Method Details

    • getCycle

      public Cycle getCycle()
      Returns:
      the negative cost cycle that was detected.