Class NegativeCycleException
- Namespace
- Graph1x.Algorithms
- Assembly
- Graph1x.dll
Thrown when a shortest-path computation detects a negative-weight cycle, which makes shortest distances undefined for the affected vertices.
public class NegativeCycleException : InvalidOperationException, ISerializable
- Inheritance
-
NegativeCycleException
- Implements
- Inherited Members
Constructors
NegativeCycleException()
Initializes the exception with a default message.
public NegativeCycleException()
NegativeCycleException(string)
Initializes the exception with message.
public NegativeCycleException(string message)
Parameters
messagestringThe error message.
NegativeCycleException(string, Exception)
Initializes the exception with message and innerException.
public NegativeCycleException(string message, Exception innerException)