org.jgraph.algebra
Class DefaultCostFunction
java.lang.Object
org.jgraph.algebra.DefaultCostFunction
- All Implemented Interfaces:
- CostFunction
- public class DefaultCostFunction
- extends Object
- implements CostFunction
Field Summary |
protected CellMapper |
mapper
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mapper
protected CellMapper mapper
DefaultCostFunction
public DefaultCostFunction(CellMapper mapper)
getCost
public double getCost(Object cell)
- Specified by:
getCost
in interface CostFunction
getLength
public static double getLength(CellView view)
Copyright (C) 2003-2005 Gaudenz Alder. All rights reserved.