Function netuit::GetSubTopologies

Function Documentation

std::unordered_map<uitsl::proc_id_t, netuit::Topology> netuit::GetSubTopologies(const netuit::Topology &topo, const uitsl::EnumeratedFunctor<netuit::Topology::node_id_t, uitsl::proc_id_t> &assigner)

This function is used to get subtopologies made up of all the neighbors of a node in a given topology, for all nodes.

Return

Unordered map of proc ids to subtopologies.

Parameters
  • [in] topo: Topology to get subtopologies of.

  • [in] assigner: Functor of node ids to proc ids.