HOG2
|
Edge class for connections between node in a Graph. More...
#include <Graph.h>
Public Member Functions | |
edge (unsigned int, unsigned int, double) | |
graph_object * | Clone () const |
void | SetLabelF (unsigned int index, double val) |
void | SetLabelL (unsigned int index, long val) |
double | GetLabelF (unsigned int index) const |
long | GetLabelL (unsigned int index) const |
double | GetWeight () |
void | setWeight (double val) |
unsigned int | getFrom () const |
unsigned int | getTo () const |
void | setMarked (bool marked) |
bool | getMarked () |
int | getEdgeNum () const |
void | Print (std::ostream &) const |
Public Member Functions inherited from graph_object | |
graph_object () | |
virtual | ~graph_object () |
virtual double | GetKey () |
Private Attributes | |
bool | mark |
unsigned int | from |
unsigned int | to |
unsigned int | edgeNum |
std::vector< labelValue > | label |
Friends | |
class | Graph |
Additional Inherited Members | |
Public Attributes inherited from graph_object | |
unsigned int | key |
edge::edge | ( | unsigned int | f, |
unsigned int | t, | ||
double | w | ||
) |
Definition at line 570 of file Graph.cpp.
References kEdgeWeight, and SetLabelF().
Referenced by Clone().
|
inlinevirtual |
Implements graph_object.
Definition at line 132 of file Graph.h.
References edge(), from, GetLabelF(), kEdgeWeight, and to.
Referenced by Graph::cloneAll().
|
inline |
Definition at line 152 of file Graph.h.
References edgeNum.
Referenced by clusterUtil::EdgeEqual::operator()(), and clusterUtil::EdgeHash::operator()().
|
inline |
Definition at line 146 of file Graph.h.
References from.
Referenced by MapCliqueAbstraction::abstractUpEdge(), LoadedCliqueAbstraction::abstractUpEdge(), Graph::AddEdge(), node::AddEdge(), MapCliqueAbstraction::cliqueAbstractGraph(), LoadedCliqueAbstraction::cliqueAbstractGraph(), CanonicalGraphEnvironment::ComputeOrdering(), WeightedMap2DEnvironment::DrawEdge(), Graph::Export(), aStarOld::extractBestPath(), corridorAStar::extractBestPath(), FringeSearch::extractBestPath(), Graph::FindEdge(), MapCliqueAbstraction::findEdgeParent(), LoadedCliqueAbstraction::findEdgeParent(), FloydWarshall(), praStar::getAbstractPath(), CanonicalGraphEnvironment::GetSuccessors(), MapCliqueAbstraction::insertNodeIntoHierarchy(), LoadedCliqueAbstraction::insertNodeIntoHierarchy(), MapCliqueAbstraction::mergeGroupIntoNeighbor(), LoadedCliqueAbstraction::mergeGroupIntoNeighbor(), Prim(), Graph::relax(), Graph::relaxReverseEdge(), MapCliqueAbstraction::RemoveEdge(), and LoadedCliqueAbstraction::RemoveEdge().
|
inline |
|
inline |
Definition at line 138 of file Graph.h.
Referenced by LoadedBBAbstraction::abstractGraph(), MapCliqueAbstraction::abstractUpEdge(), LoadedCliqueAbstraction::abstractUpEdge(), RadiusAbstraction::addEdges(), MapLineAbstraction::addEdges(), MapSectorAbstraction::addEdges(), NodeLimitAbstraction::addEdges(), MapCliqueAbstraction::cliqueAbstractGraph(), LoadedCliqueAbstraction::cliqueAbstractGraph(), WeightedMap2DEnvironment::DrawEdge(), LoadedCliqueAbstraction::neighborAbstractGraph(), MapCliqueAbstraction::RemoveEdge(), LoadedCliqueAbstraction::RemoveEdge(), MapCliqueAbstraction::RemoveNode(), LoadedCliqueAbstraction::RemoveNode(), MapCliqueAbstraction::transferGroup(), and LoadedCliqueAbstraction::transferGroup().
|
inline |
|
inline |
Definition at line 147 of file Graph.h.
References to.
Referenced by MapCliqueAbstraction::abstractUpEdge(), LoadedCliqueAbstraction::abstractUpEdge(), Graph::AddEdge(), node::AddEdge(), MapCliqueAbstraction::cliqueAbstractGraph(), LoadedCliqueAbstraction::cliqueAbstractGraph(), CanonicalGraphEnvironment::ComputeOrdering(), WeightedMap2DEnvironment::DrawEdge(), Graph::Export(), aStarOld::extractBestPath(), corridorAStar::extractBestPath(), FringeSearch::extractBestPath(), Graph::findDirectedEdge(), Graph::FindEdge(), MapCliqueAbstraction::findEdgeParent(), LoadedCliqueAbstraction::findEdgeParent(), FloydWarshall(), praStar::getAbstractPath(), CanonicalGraphEnvironment::GetSuccessors(), MapCliqueAbstraction::insertNodeIntoHierarchy(), LoadedCliqueAbstraction::insertNodeIntoHierarchy(), MapCliqueAbstraction::mergeGroupIntoNeighbor(), LoadedCliqueAbstraction::mergeGroupIntoNeighbor(), Prim(), Graph::relax(), Graph::relaxReverseEdge(), and node::RemoveEdge().
|
inline |
Definition at line 140 of file Graph.h.
References GetLabelF(), and kEdgeWeight.
Referenced by FringeSearch::addCosts(), aStar::addToOpenList(), CanonicalGraphEnvironment::ComputeOrdering(), GraphDistanceHeuristic::ComputeSizes(), IRAStar::ExpandNeighbors(), Graph::Export(), GraphDistanceHeuristic::FindBestChild(), GraphDistanceHeuristic::FindFarNode(), FloydWarshall(), CanonicalGraphEnvironment::GCost(), GraphEnvironment::GCost(), GraphDistanceHeuristic::GetOptimalDistances(), IRAStar::GetSolution(), AbstractionSearchEnvironment::heuristic(), OldSearchCode::GraphSearchEnvironment::heuristic(), IRAStar::Inconsistent(), Compare::operator()(), CFOptimalRefinement::RefineNode(), Graph::relax(), aStarOld::relaxEdge(), corridorAStar::relaxEdge(), praStar::relaxEdge(), Graph::relaxReverseEdge(), RoadMap::RoadMap(), FringeSearch::updateCosts(), CFOptimalRefinement::UpdateG(), CFOptimalRefinement::UpdateH(), CFOptimalRefinement::UpdateOptH(), and aStar::updateWeight().
|
virtual |
Reimplemented from graph_object.
Definition at line 578 of file Graph.cpp.
References from, GetLabelF(), kEdgeWeight, and to.
Referenced by operator<<().
void edge::SetLabelF | ( | unsigned int | index, |
double | val | ||
) |
Definition at line 583 of file Graph.cpp.
References labelValue::fval, label, and MAXINT.
Referenced by edge(), and setWeight().
void edge::SetLabelL | ( | unsigned int | index, |
long | val | ||
) |
Definition at line 598 of file Graph.cpp.
References label, labelValue::lval, and MAXINT.
Referenced by LoadedBBAbstraction::abstractGraph(), MapCliqueAbstraction::abstractUpEdge(), LoadedCliqueAbstraction::abstractUpEdge(), RadiusAbstraction::addEdges(), MapLineAbstraction::addEdges(), MapSectorAbstraction::addEdges(), NodeLimitAbstraction::addEdges(), AddMapEdges(), MapCliqueAbstraction::cliqueAbstractGraph(), LoadedCliqueAbstraction::cliqueAbstractGraph(), LoadedCliqueAbstraction::neighborAbstractGraph(), MapCliqueAbstraction::RemoveEdge(), LoadedCliqueAbstraction::RemoveEdge(), MapCliqueAbstraction::RemoveNode(), LoadedCliqueAbstraction::RemoveNode(), MapCliqueAbstraction::transferGroup(), and LoadedCliqueAbstraction::transferGroup().
|
inline |
Definition at line 149 of file Graph.h.
References mark.
Referenced by craStar::doRefinement(), aStarOld::extractBestPath(), corridorAStar::extractBestPath(), FringeSearch::extractBestPath(), aStar::extractPathToStart(), praStar::getAbstractPath(), craStar::getNextNode(), and Prim().
|
inline |
Definition at line 141 of file Graph.h.
References kEdgeWeight, and SetLabelF().
Referenced by RoadMap::RoadMap().
|
private |
Definition at line 161 of file Graph.h.
Referenced by Graph::AddEdge(), getEdgeNum(), and Graph::RemoveEdge().
|
private |
|
private |
Definition at line 163 of file Graph.h.
Referenced by GetLabelF(), GetLabelL(), SetLabelF(), and SetLabelL().
|
private |
Definition at line 157 of file Graph.h.
Referenced by getMarked(), and setMarked().
|
private |