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