Merge pull request #1103 from dmbreaker/feature/graph_comments
Added some graphical explanations for variables.
This commit is contained in:
commit
65ccbedab2
@ -72,6 +72,14 @@ template <typename GraphT> class BFSComponentExplorer
|
|||||||
NodeID node,
|
NodeID node,
|
||||||
unsigned current_component)
|
unsigned current_component)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
Graphical representation of variables:
|
||||||
|
|
||||||
|
u v w
|
||||||
|
*---------->*---------->*
|
||||||
|
e2
|
||||||
|
*/
|
||||||
|
|
||||||
bfs_queue.emplace(node, node);
|
bfs_queue.emplace(node, node);
|
||||||
// mark node as read
|
// mark node as read
|
||||||
m_component_index_list[node] = current_component;
|
m_component_index_list[node] = current_component;
|
||||||
|
@ -158,6 +158,13 @@ template <class DataFacadeT> class BasicRoutingInterface
|
|||||||
std::pair<NodeID, NodeID> edge;
|
std::pair<NodeID, NodeID> edge;
|
||||||
while (!recursion_stack.empty())
|
while (!recursion_stack.empty())
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
Graphical representation of variables:
|
||||||
|
|
||||||
|
edge.first edge.second
|
||||||
|
*------------------>*
|
||||||
|
edge_id
|
||||||
|
*/
|
||||||
edge = recursion_stack.top();
|
edge = recursion_stack.top();
|
||||||
recursion_stack.pop();
|
recursion_stack.pop();
|
||||||
|
|
||||||
@ -175,6 +182,14 @@ template <class DataFacadeT> class BasicRoutingInterface
|
|||||||
edge_weight = weight;
|
edge_weight = weight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Graphical representation of variables:
|
||||||
|
|
||||||
|
edge.first edge.second
|
||||||
|
*<------------------*
|
||||||
|
edge_id
|
||||||
|
*/
|
||||||
if (SPECIAL_EDGEID == smaller_edge_id)
|
if (SPECIAL_EDGEID == smaller_edge_id)
|
||||||
{
|
{
|
||||||
for (auto edge_id : facade->GetAdjacentEdgeRange(edge.second))
|
for (auto edge_id : facade->GetAdjacentEdgeRange(edge.second))
|
||||||
|
Loading…
Reference in New Issue
Block a user