}
if (from == null || to == null)
return;
mxGraphAnalysis mga = mxGraphAnalysis.getInstance();
Object[] path = mga.getShortestPath(currentGraph, from, to, new mxICostFunction() {
@Override
public double getCost(mxCellState state) {
double length = 0;
boolean attrExist = false;