GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — mxgraph/java/src/com/mxgraph/analysis/mxICostFunction.java at master · optionalg/mxgraph Expand file tree/ Copy pathmxICostFunction.javaMore file actions 26 lines (22 loc) · 709 Bytes / Copy pathmxICostFunction.javaFile metadata and controls26 lines (22 loc) · 709 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 /** * Copyright (c) 2007, Gaudenz Alder */ package com.mxgraph.analysis; import com.mxgraph.view.mxCellState; /** * The cost function takes a cell and returns it's cost as a double. Two typical * examples of cost functions are the euclidian length of edges or a constant * number for each edge. To use one of the built-in cost functions, use either * <code>new mxDistanceCostFunction(graph)</code> or * <code>new mxConstantCostFunction(1)</code>. */ public interface mxICostFunction { /** * Evaluates the cost of the given cell state. * * @param state The cell state to be evaluated * @return Returns the cost to traverse the given cell state. */ double getCost(mxCellState state); } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |