| Package | Description |
|---|---|
| org.protempa.graph |
| Modifier and Type | Field and Description |
|---|---|
static Weight |
WeightFactory.NEG_EPSILON
Special value representing the smallest possible negative value.
|
static Weight |
WeightFactory.NEG_INFINITY
Special value representing negative infinity.
|
static Weight |
WeightFactory.POS_EPSILON
Special value representing the smallest possible positive value.
|
static Weight |
WeightFactory.POS_INFINITY
Special value representing positive infinity.
|
static Weight |
WeightFactory.ZERO
Special value representing zero.
|
| Modifier and Type | Method and Description |
|---|---|
Weight |
Weight.add(Weight w)
Creates a new weight with value equal to the sum of both weights.
|
Weight |
WeightFactory.getInstance() |
Weight |
WeightFactory.getInstance(Number val) |
Weight |
Edge.getWeight() |
Weight |
Weight.invertSign()
Creates a new weight with the opposite sign.
|
static Weight |
Weight.max(Weight w1,
Weight w2)
Gets the larger of the two given weights.
|
static Weight |
Weight.min(Weight w1,
Weight w2)
Gets the smaller of the two given weights.
|
Weight |
Weight.subtract(Weight w)
Creates a new weight the value equal to the difference between the two
weights.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<?,Weight> |
BellmanFord.calcShortestDistances(Object sourceOrDest,
DirectedGraph g,
BellmanFord.Mode mode)
Calculates the distance of every object in a graph from a source object.
|
| Modifier and Type | Method and Description |
|---|---|
Weight |
Weight.add(Weight w)
Creates a new weight with value equal to the sum of both weights.
|
int |
Weight.compareTo(Weight anotherWeight)
Compares two
Weight objects numerically. |
static Weight |
Weight.max(Weight w1,
Weight w2)
Gets the larger of the two given weights.
|
static Weight |
Weight.min(Weight w1,
Weight w2)
Gets the smaller of the two given weights.
|
void |
DirectedGraph.setEdge(Object vertex1,
Object vertex2,
Weight weight)
Set the edge between two vertices.
|
Weight |
Weight.subtract(Weight w)
Creates a new weight the value equal to the difference between the two
weights.
|
Copyright © 2012–2018 Emory University. All rights reserved.