public class SPTEntry extends Object implements Cloneable, Comparable<SPTEntry>
Modifier and Type | Field and Description |
---|---|
int |
adjNode |
int |
edge |
SPTEntry |
parent |
double |
weight |
Constructor and Description |
---|
SPTEntry(int node,
double weight) |
SPTEntry(int edgeId,
int adjNode,
double weight) |
Modifier and Type | Method and Description |
---|---|
SPTEntry |
clone() |
SPTEntry |
cloneFull() |
int |
compareTo(SPTEntry o) |
SPTEntry |
getParent() |
double |
getWeightOfVisitedPath()
This method returns the weight to the origin e.g.
|
String |
toString() |
public int edge
public int adjNode
public double weight
public SPTEntry parent
public SPTEntry(int edgeId, int adjNode, double weight)
public SPTEntry(int node, double weight)
public double getWeightOfVisitedPath()
public SPTEntry getParent()
public SPTEntry cloneFull()
public int compareTo(SPTEntry o)
compareTo
in interface Comparable<SPTEntry>
Copyright © 2012–2020. All rights reserved.