src/dynamic_graph/src/dynamic_forest.cpp
// Allocates Euler tour sequence elements for an edge in the forest.
Allocates Euler tour sequence elements for an edge in the forest.
Allocates Euler tour sequence elements for an edge in the forest .
UndirectedEdgeElements DynamicForest::AllocateEdgeElements(
    const UndirectedEdge& edge) {
  UndirectedEdgeElements edge_elements{
    free_edge_elements_[free_edge_elements_.size() - 1],
    free_edge_elements_[free_edge_elements_.size() - 2]
  };
  free_edge_elements_.pop_back();
  free_edge_elements_.pop_back();
  edge_elements.forward_edge->id_ = std::make_pair(edge.first, edge.second);
  edge_elements.backward_edge->id_ = std::make_pair(edge.second, edge.first);
  return edge_elements;
}
UndirectedEdgeElements DynamicForest :: AllocateEdgeElements ( const UndirectedEdge & edge ) { UndirectedEdgeElements edge_elements { free_edge_elements_ [ free_edge_elements_ . size ( ) - 1 ] , free_edge_elements_ [ free_edge_elements_ . size ( ) - 2 ] } ; free_edge_elements_ . pop_back ( ) ; free_edge_elements_ . pop_back ( ) ; edge_elements . forward_edge -> id_ = std :: make_pair ( edge . first , edge . second ) ; edge_elements . backward_edge -> id_ = std :: make_pair ( edge . second , edge . first ) ; return edge_elements ; }
Allocates Euler tour sequence elements for an edge in the forest.
Allocates Euler tour sequence elements for an edge in the forest .