if(i.getEntity() instanceof PEdge) { PEdge p = (PEdge) i.getEntity(); if(p.isPathElement()) { return apsp;
if (i.isHighlighted()) { return selected; }  if(i.getEntity() instanceof PElement) { PElement p = (PElement) i.getEntity(); if(p.isSelected()) { return selected;
	public Paint getColor(VisualItem i) {		if(i.getEntity() instanceof PEdge) {			PEdge p = (PEdge) i.getEntity();			if(p.isPathElement()) {				return apsp;			}		}		if(i.getEntity() instanceof PNode) {			PNode p = (PNode) i.getEntity();			if(p.isPathElement()) {				return apsp;			}		}		return normal;	}