|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UndirectedLongGraph
An undirected weighted graph.
UndirectedMutableGraph
Nested Class Summary | |
---|---|
static interface |
UndirectedLongGraph.Edge
Deprecated. A possible edge connecting two vertices of an underlying UndirectedLongGraph . |
Field Summary | |
---|---|
static double |
DEFAULT_UNCONNECTED_WEIGHT
Deprecated. The default weight for two not connected vertices. |
Method Summary | |
---|---|
boolean |
containsEdge(long vertexA,
long vertexB)
Deprecated. Check if there exists an edge in the graph connecting the two vertices given as parameters. |
boolean |
containsVertex(long vertex)
Deprecated. Check if given vertex is contained in the graph. |
java.util.Iterator<? extends UndirectedLongGraph.Edge> |
edges()
Deprecated. Get an iterator over all edges of the graph. |
java.util.Iterator<? extends UndirectedLongGraph.Edge> |
edgesConnectedTo(long vertex)
Deprecated. Get an iterator over all edges in the graph, given vertex is connected with. |
UndirectedLongGraph.Edge |
getEdge(long vertexA,
long vertexB)
Deprecated. Get the UndirectedLongGraph.Edge connecting the two vertices. |
double |
getEdgeWeight(long vertexA,
long vertexB)
Deprecated. Get the weight of the edge connecting the two vertices. |
double |
getUnconnectedWeight()
Deprecated. The method getEdgeWeight(long, long) returns a double
value for any possible edge connecting two vertices in the graph. |
int |
numEdges()
Deprecated. Get the number of edges. |
int |
numEdges(long vertex)
Deprecated. |
int |
numVertices()
Deprecated. Get the number of vertices. |
long[] |
vertices()
Deprecated. Get an array containing all current vertices of this graph. |
long[] |
verticesConnectedTo(long vertex)
Deprecated. Get an array containing all vertices that are connected with given vertex at the moment of this call. |
Field Detail |
---|
static final double DEFAULT_UNCONNECTED_WEIGHT
Method Detail |
---|
double getUnconnectedWeight()
getEdgeWeight(long, long)
returns a double
value for any possible edge connecting two vertices in the graph. If
an edge does not exist, the method will return this value.
int numVertices()
int numEdges()
int numEdges(long vertex)
vertex
- Which vertex to count edges of.
java.util.NoSuchElementException
- If the vertex is not part of the graph.long[] vertices()
numVertices()
long[] verticesConnectedTo(long vertex)
vertex
- The vertex.
java.util.NoSuchElementException
- If the vertex is not part of the graph.numEdges(long)
java.util.Iterator<? extends UndirectedLongGraph.Edge> edges()
numEdges()
java.util.Iterator<? extends UndirectedLongGraph.Edge> edgesConnectedTo(long vertex)
vertex
- The vertex.
java.util.NoSuchElementException
- If the vertex is not part of the graph.numEdges(long)
boolean containsVertex(long vertex)
vertex
- The vertex to look for.
boolean containsEdge(long vertexA, long vertexB)
vertexA
- One vertex.vertexB
- The other vertex.
java.util.NoSuchElementException
- If at least one of the vertices is not
part of the graph.double getEdgeWeight(long vertexA, long vertexB)
getUnconnectedWeight()
if the two vertices are not connected.
vertexA
- One vertex.vertexB
- The other vertex.
getUnconnectedWeight()
.
java.util.NoSuchElementException
- If at least one of the vertices is not
part of the graph.containsEdge(long, long)
,
getEdge(long, long)
UndirectedLongGraph.Edge getEdge(long vertexA, long vertexB)
UndirectedLongGraph.Edge
connecting the two vertices. The object will also
be returned if there does not exists such an edge in the graph. Use
UndirectedLongGraph.Edge.exists()
to check.
vertexA
- One vertex.vertexB
- The other vertex.
java.util.NoSuchElementException
- If at least one of the vertices is not
part of the graph.containsEdge(long, long)
,
getEdgeWeight(long, long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |