public interface NormalisedIntGraph
extends java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addEdge(int normalisedSource,
int normalisedTarget,
long weight)
Adds an edge.
|
NormalisedIntGraph |
clone() |
boolean |
containsEdge(int normalisedSource,
int normalisedTarget)
Returns whether the graph contains an edge between source and target.
|
java.lang.Iterable<java.lang.Long> |
getEdges()
Gives an iterable that iterates over all edges; The edges that are
returned are indices.
|
java.lang.Iterable<java.lang.Long> |
getEdgesOf(int normalisedNode)
Return an iterable of edgeIndex containing all edges of which v is a
source or a target.
|
int |
getEdgeSourceIndex(long edgeIndex)
Returns the vertex the edgeIndex comes from.
|
int |
getEdgeTargetIndex(long edgeIndex)
Returns the index of the vertex the edgeIndex points to.
|
long |
getEdgeWeight(int normalisedSource,
int normalisedTarget)
Returns the weight of an edge between source and target.
|
long |
getEdgeWeight(long edgeIndex)
Returns the weight of an edge.
|
java.lang.Iterable<java.lang.Long> |
getIncomingEdgesOf(int normalisedNode)
Returns an array of edge index, containing all edges of which v is the
target.
|
java.lang.Iterable<java.lang.Long> |
getOutgoingEdgesOf(int normalisedNode)
Returns an array of edge index, containing all edges of which v is the
source.
|
long |
getWeightOfHeaviestEdge()
Returns the weight of the edge with the highest weight.
|
void addEdge(int normalisedSource, int normalisedTarget, long weight)
normalisedSource
- normalisedTarget
- weight
- java.lang.Iterable<java.lang.Long> getEdges()
boolean containsEdge(int normalisedSource, int normalisedTarget)
int getEdgeSourceIndex(long edgeIndex)
edgeIndex
- int getEdgeTargetIndex(long edgeIndex)
edgeIndex
- long getEdgeWeight(int normalisedSource, int normalisedTarget)
normalisedSource
- normalisedTarget
- java.lang.Iterable<java.lang.Long> getIncomingEdgesOf(int normalisedNode)
normalisedNode
- java.lang.Iterable<java.lang.Long> getOutgoingEdgesOf(int normalisedNode)
normalisedNode
- java.lang.Iterable<java.lang.Long> getEdgesOf(int normalisedNode)
normalisedNode
- long getWeightOfHeaviestEdge()
long getEdgeWeight(long edgeIndex)
edgeIndex
- NormalisedIntGraph clone()