ReachabilityPortModel port = (ReachabilityPortModel) place.getChildAt(0);
Set<ReachabilityEdgeModel> edges = port.getEdges();
Iterator<ReachabilityEdgeModel> iterEdges = edges.iterator();
Map<ReachabilityEdgeModel, AttributeMap> editMap = new HashMap<ReachabilityEdgeModel, AttributeMap>();
while (iterEdges.hasNext()) {
ReachabilityEdgeModel edge = iterEdges.next();
edge.setOutgoing(false);
edge.setIngoing(false);
if (edge.getSource().equals(port)) {
edge.setOutgoing(true);
editMap.put(edge, edge.getAttributes());
} else
if (edge.getTarget().equals(port)) {
edge.setIngoing(true);
editMap.put(edge, edge.getAttributes());
}
}
this.lastHighlighted = place;
if (editMap.size() > 0) {
graph.getGraphLayoutCache().edit(editMap, null, null, null);