{
Iterator<DirectedSparseEdge>neighbourIt = v.getOutEdges().iterator();
while(neighbourIt.hasNext()){
DirectedSparseEdge next = neighbourIt.next();
Vertex neighbour = next.getDest();
JUConstants neighbourColour = (JUConstants)neighbour.getUserDatum(JUConstants.COLOUR);
if(neighbourColour!=null){
if(neighbourColour == JUConstants.RED)
continue;
}
neighbour.setUserDatum(JUConstants.COLOUR, JUConstants.BLUE, UserData.SHARED);