Coloring wireframe edges should just be a call to setColor
:
pipeline.actor.getProperty().setColor(1, 1, 0); // yellow
pipeline.actor.getProperty().setRepresentation(1); // wireframe representation constant
See this example: edge coloring - CodeSandbox