vtkGraphLayoutView vertex array name
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
According to http://www.vtk.org/doc/nightly/html/classvtkGraphLayoutView.html#a9308e088c7bdc9a8824d7ef018754fe5
the default vertex array name is "label". However, if you name the array "label" but do not explicitly set SetVertexLabelArrayName to "label", the labels are not applied correctly (the numbers are all wrong). Looking at the default array name:
vtkstd::cout << "Vertex label name: " << GraphLayoutView->GetVertexLabelArrayName () << vtkstd::endl;
it seems to be "VertexDegree". However, if I name the array that is added to the graph with G->GetVertexData()->AddArray "VertexDegree", the labels are still applied incorrectly. If I name the array "label" and set the VertexLabelArrayName to "label" the labels are applied properly.
Here is a little demo framework: http://www.rpi.edu/~doriad/VTK_List/GraphVertexLabels/