com.jgraph.algebra.cost

Class JGraphDistanceCostFunction

public class JGraphDistanceCostFunction extends Object implements JGraphCostFunction

This class implements a priority queue.
Field Summary
protected CellMappermapper
Constructor Summary
JGraphDistanceCostFunction(CellMapper mapper)
Method Summary
doublegetCost(Object cell)
static doublegetLength(CellView view)

Field Detail

mapper

protected CellMapper mapper

Constructor Detail

JGraphDistanceCostFunction

public JGraphDistanceCostFunction(CellMapper mapper)

Method Detail

getCost

public double getCost(Object cell)

getLength

public static double getLength(CellView view)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.