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