MCPcopy Create free account
hub / github.com/Kitware/VTK / vertices

Function vertices

Infovis/BoostGraphAlgorithms/vtkBoostGraphAdapter.h:967–980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967inline std::pair<boost::graph_traits<vtkGraph*>::vertex_iterator,
968 boost::graph_traits<vtkGraph*>::vertex_iterator>
969vertices(vtkGraph* g)
970{
971 typedef boost::graph_traits<vtkGraph*>::vertex_iterator Iter;
972 vtkIdType start = 0;
973 if (vtkDistributedGraphHelper* helper = g->GetDistributedGraphHelper())
974 {
975 int rank = g->GetInformation()->Get(vtkDataObject::DATA_PIECE_NUMBER());
976 start = helper->MakeDistributedId(rank, start);
977 }
978
979 return std::make_pair(Iter(start), Iter(start + g->GetNumberOfVertices()));
980}
981
982inline std::pair<boost::graph_traits<vtkGraph*>::edge_iterator,
983 boost::graph_traits<vtkGraph*>::edge_iterator>

Callers 2

TestTraversalFunction · 0.85
TestGraphFunction · 0.85

Calls 5

MakeDistributedIdMethod · 0.80
GetNumberOfVerticesMethod · 0.80
GetMethod · 0.45
GetInformationMethod · 0.45

Tested by 2

TestTraversalFunction · 0.68
TestGraphFunction · 0.68