Currently when you use a vtkGraphLayoutView you must use a look up table to color the points. I modified vtkApplyColors and vtkRenderedGraphRepresentation to allow a user to color graph vertices directly with a vtkUnsignedCharArray. Here is an example usage:<div>
<br></div><div><div>  vtkSmartPointer<vtkUnsignedCharArray> vertexColors =</div><div>    vtkSmartPointer<vtkUnsignedCharArray>::New();</div>

<div>  vertexColors->SetNumberOfComponents(3);</div><div>  vertexColors->SetName("PassVertexColors");</div><div><br></div><div>// ... add colors ... ///</div><div><br></div><div>  vtkSmartPointer<vtkRenderedGraphRepresentation> representation =</div>


<div>    vtkSmartPointer<vtkRenderedGraphRepresentation>::New();</div><div>  std::cout << representation->GetClassName() << std::endl;</div><div>  representation->SetInputConnection(tree->GetProducerPort());</div>


<div>  representation->ColorVerticesByArrayOn();</div><div><b>  representation->SetPassThroughPointColors(vertexColors);</b></div><div><br></div><div>  vtkSmartPointer<vtkGraphLayoutView> graphLayoutView =</div>

<div>
    vtkSmartPointer<vtkGraphLayoutView>::New();</div><div>  graphLayoutView->AddRepresentation(representation);</div></div><div><br></div><div>The branch is here:</div><div><br></div><div>repo: git@github.com:daviddoria/daviddoria-vtk.git</div>


<div>branch: VTK-GraphColors</div><div><br clear="all">Please let me know what you think.<br><br>David<br>
</div>