Table of Contents

Class NegativeWeightException

Namespace
Graph1x.Algorithms
Assembly
Graph1x.dll

Thrown when an edge weight falls outside the domain an algorithm requires: a negative weight where non-negative ones are needed (Dijkstra, A*, maximum flow), or a non-positive weight where strictly positive ones are needed (weighted betweenness centrality).

public class NegativeWeightException : InvalidOperationException, ISerializable
Inheritance
NegativeWeightException
Implements
Inherited Members

Constructors

NegativeWeightException()

Initializes the exception with a default message.

public NegativeWeightException()

NegativeWeightException(string)

Initializes the exception with message.

public NegativeWeightException(string message)

Parameters

message string

The error message.

NegativeWeightException(string, Exception)

Initializes the exception with message and innerException.

public NegativeWeightException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The exception that caused this one.