|
WSF
|
#include <WsfCommRoutingAlgorithmLibrary.hpp>
Inherits graph::GraphImpl::cost_func.
Public Member Functions | |
| InverseEdgeWeight ()=default | |
| ~InverseEdgeWeight () override=default | |
| double | operator() (const graph::Edge &aEdge, const graph::Node &aSourceNode, const graph::Node &aDestinationNode) const override |
| double | operator() (const graph::Node &aSourceNode, const graph::Node &aDestinationNode) const override |
| bool | consider_node (const graph::Node &aNode) const override |
Exactly the same as the EdgeWeight algorithm, with the exception that weights are subtracted from a max value to invert the edge weights. This is useful for some edge weights where a higher assigned value actually indicates a "better" weight. Users using this algorithm must be mindful that the reported costs return by the FindPath algorithm will reflect the added value for inversion.
|
default |
|
overridedefault |
|
inlineoverride |
References wsf::comm::graph::Node::IsEnabled().
|
inlineoverride |
References wsf::comm::graph::Edge::GetWeight(), and wsf::comm::graph::Edge::IsEnabled().
|
inlineoverride |