public class Graph extends Object
Modifier and Type | Field and Description |
---|---|
static int |
NONE |
static int |
ORPHAN |
static int |
TERMINAL |
Constructor and Description |
---|
Graph(int numNodes,
int numEdges) |
Modifier and Type | Method and Description |
---|---|
int |
getDistance(int node) |
int |
getFirstOutgoing(int node) |
int |
getHead(int edge) |
int |
getNextEdge(int edge) |
int |
getNextNode(int node) |
int |
getNumEdges() |
int |
getNumNodes() |
int |
getParent(int node) |
float |
getResidualEdgeCapacity(int edge) |
float |
getResidualNodeCapacity(int node) |
int |
getSister(int edge) |
int |
getTimestamp(int node) |
boolean |
isInChangedList(int node) |
void |
isInChangedList(int node,
boolean isIn) |
boolean |
isInSink(int node) |
void |
isInSink(int node,
boolean isIn) |
boolean |
isMarked(int node) |
void |
isMarked(int node,
boolean is) |
void |
setDistance(int node,
int distance) |
void |
setFirstOutgoing(int node,
int edge) |
void |
setHead(int edge,
int head) |
void |
setNextEdge(int edge,
int next) |
void |
setNextNode(int node,
int next) |
void |
setParent(int node,
int edge) |
void |
setResidualEdgeCapacity(int edge,
float capacity) |
void |
setResidualNodeCapacity(int node,
float capacity) |
void |
setSister(int edge,
int sister) |
void |
setTimestamp(int node,
int time) |
public static final int NONE
public static final int TERMINAL
public static final int ORPHAN
public final float getResidualNodeCapacity(int node)
public final void setResidualNodeCapacity(int node, float capacity)
public final float getResidualEdgeCapacity(int edge)
public final void setResidualEdgeCapacity(int edge, float capacity)
public final int getParent(int node)
public final void setParent(int node, int edge)
public final int getSister(int edge)
public final void setSister(int edge, int sister)
public final int getNextNode(int node)
public final void setNextNode(int node, int next)
public final int getNextEdge(int edge)
public final void setNextEdge(int edge, int next)
public final int getFirstOutgoing(int node)
public final void setFirstOutgoing(int node, int edge)
public final int getHead(int edge)
public final void setHead(int edge, int head)
public final boolean isInSink(int node)
public final void isInSink(int node, boolean isIn)
public final int getTimestamp(int node)
public final void setTimestamp(int node, int time)
public final int getDistance(int node)
public final void setDistance(int node, int distance)
public final boolean isInChangedList(int node)
public final void isInChangedList(int node, boolean isIn)
public final int getNumNodes()
public final int getNumEdges()
public final boolean isMarked(int node)
public final void isMarked(int node, boolean is)
Copyright © 2015–2021 Fiji. All rights reserved.