NDEVR
API Documentation
UniformCostFunction

Cost function that assigns uniform cost of 1.0 to every edge. More...

Inheritance diagram for UniformCostFunction:
[legend]
Collaboration diagram for UniformCostFunction:
[legend]

Public Member Functions

virtual g_type operator() (HyperGraph::HGEdge *edge, HyperGraph::HGVertex *from, HyperGraph::HGVertex *to)
 Returns 1.0 for any edge, implementing uniform cost.

Detailed Description

Cost function that assigns uniform cost of 1.0 to every edge.

Definition at line 174 of file hyper_dijkstra.h.

Member Function Documentation

◆ operator()()

virtual g_type UniformCostFunction::operator() ( HyperGraph::HGEdge * edge,
HyperGraph::HGVertex * from,
HyperGraph::HGVertex * to )
virtual

Returns 1.0 for any edge, implementing uniform cost.

Parameters
[in]edgeThe edge (unused).
[in]fromThe source vertex (unused).
[in]toThe destination vertex (unused).
Returns
1.0

Implements HyperDijkstra::CostFunction.


The documentation for this struct was generated from the following file: