GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mxgraph/java/src/com/mxgraph/analysis/mxICostFunction.java at master · optionalg/mxgraph

Expand file tree

/

mxICostFunction.java

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
26 lines (22 loc) · 709 Bytes
/

mxICostFunction.java

Copy path

File metadata and controls

26 lines (22 loc) · 709 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.