com.jgraph.algebra.cost
public class JGraphConstantCostFunction extends java.lang.Object implements JGraphCostFunction
Modifier and Type | Field and Description |
---|---|
protected double |
cost |
Constructor and Description |
---|
JGraphConstantCostFunction(double cost) |
Modifier and Type | Method and Description |
---|---|
double |
getCost(java.lang.Object cell)
Evaluates the cost of
cell . |
public double getCost(java.lang.Object cell)
JGraphCostFunction
cell
.getCost
in interface JGraphCostFunction
cell
- the cell to be evaluatedcell
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.