Package | Description |
---|---|
lib.easyjava.graph | |
lib.easyjava.graph.directed | |
lib.easyjava.graph.undirected |
Modifier and Type | Method and Description |
---|---|
Edge<T> |
UnweightedGraph.addEdge(Vertex<T> source,
Vertex<T> target)
Adds an edge to the graph between two Vertices
|
Edge<T> |
WeightedGraph.addEdge(Vertex<T> source,
Vertex<T> target,
double weight)
Adds an Edge to the graph between two Vertices with the given weight
|
Edge<T> |
UnweightedVertex.connectTo(Vertex<T> target)
Connects the vertex to another in its graph
|
Edge<T> |
WeightedVertex.connectTo(Vertex<T> target,
double weight)
Connects the vertex to another in its graph
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.Set<? extends Edge<T>> |
Vertex.getEdges()
Gets all the edges connected to this vertex.
|
java.util.Set<? extends Edge<T>> |
Graph.getEdges()
Gets all the edges in the graph
|
Modifier and Type | Class and Description |
---|---|
class |
DirectedEdge<T>
A directed edge in a graph
|
class |
WeightedDirectedEdge<T>
A weighted directed edge in a graph
|
Modifier and Type | Class and Description |
---|---|
class |
UndirectedEdge<T>
An undirected edge in a graph
|
class |
WeightedUndirectedEdge<T>
A weighted undirected edge in a graph
|