Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 740
    • Issues 740
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 195
    • Merge requests 195
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #9964
Closed
Open
Created Nov 23, 2009 by Kitware Robot@kwrobotOwner

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/

Assignee
Assign to
Time tracking