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

Method GetVertexIndex

Common/DataModel/vtkDistributedGraphHelper.cxx:76–88  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

74
75//------------------------------------------------------------------------------
76vtkIdType vtkDistributedGraphHelper::GetVertexIndex(vtkIdType v) const
77{
78 vtkIdType index = v;
79 int numProcs = this->Graph->GetInformation()->Get(vtkDataObject::DATA_NUMBER_OF_PIECES());
80
81 if (numProcs > 1)
82 {
83 // Shift off the Owner bits. (Would a mask be faster?)
84 index = (v << this->procBits) >> this->procBits;
85 }
86
87 return index;
88}
89
90//------------------------------------------------------------------------------
91vtkIdType vtkDistributedGraphHelper::GetEdgeOwner(vtkIdType e_id) const

Callers 10

GetPointMethod · 0.45
GetOutEdgeMethod · 0.45
GetOutEdgesMethod · 0.45
GetOutDegreeMethod · 0.45
GetDegreeMethod · 0.45
GetInEdgeMethod · 0.45
GetInEdgesMethod · 0.45
GetInDegreeMethod · 0.45
AddVertexInternalMethod · 0.45
ReorderOutVerticesMethod · 0.45

Calls 2

GetMethod · 0.45
GetInformationMethod · 0.45

Tested by

no test coverage detected