- DEFAULT_COMPONENT - Static variable in interface com.codemelon.graph.vertex.ComponentVertex
-
Default value for vertices' component field.
- DEFAULT_DISCOVERY_TIME - Static variable in interface com.codemelon.graph.vertex.VisitedVertex
-
Default discovery time to which vertices are initialized unless otherwise specified.
- DEFAULT_DISTANCE - Static variable in interface com.codemelon.graph.vertex.DistanceVertex
-
Default distance to which vertices are initialized unless otherwise specified.
- DEFAULT_EDGE_WEIGHT - Static variable in interface com.codemelon.graph.edge.EdgeWeightData
-
Default edge weight to which edges are initialized if not otherwise specified.
- DEFAULT_FINISH_TIME - Static variable in interface com.codemelon.graph.vertex.VisitedVertex
-
Default finish time to which vertices are initialized unless otherwise specified.
- DEFAULT_SEARCH_ORDER_VALUE - Static variable in interface com.codemelon.graph.vertex.OrderedSearchVertex
-
Default value to which vertices' search order fields are initialized unless otherwise specified.
- DEFAULT_WEIGHT - Static variable in interface com.codemelon.graph.vertex.WeightedVertex
-
Default vertex weight.
- DEFAULT_WEIGHT_EPSILON - Static variable in interface com.codemelon.graph.graph.WeightedEdgeGraph
-
Default value for the epsilon below which weights are to be considered
equal.
- DepthFirstSearch<T extends DfsVertex> - Class in com.codemelon.graph.algorithm.search
-
This is the most basic implementation of depth-first search.
- DepthFirstSearch(AbstractGraph<T>) - Constructor for class com.codemelon.graph.algorithm.search.DepthFirstSearch
-
Prepare the depth-first search.
- DfsEdgeData - Class in com.codemelon.graph.edge
-
- DfsEdgeData() - Constructor for class com.codemelon.graph.edge.DfsEdgeData
-
Default constructor sets edge type to UNKNOWN
- DfsEdgeData(EdgeType) - Constructor for class com.codemelon.graph.edge.DfsEdgeData
-
Construct a DfsEdgeData object with initial type specified by input
- DfsEdgeData.Factory - Enum in com.codemelon.graph.edge
-
- DfsGraph<E extends DfsEdgeData> - Class in com.codemelon.graph.graph
-
Utility class that eliminates one type parameter from DirectedEdgeDataGraph by specifying V
as a DirectedDfsVertex.
- DfsGraph() - Constructor for class com.codemelon.graph.graph.DfsGraph
-
Initialize graph to a default initial capacity of 16 vertices
- DfsGraph(int) - Constructor for class com.codemelon.graph.graph.DfsGraph
-
Initialize graph to have capacity for the given number of vertices
- DfsGraph(Collection<DirectedDfsVertex<E>>) - Constructor for class com.codemelon.graph.graph.DfsGraph
-
Use the vertices in a collection as the initial vertices in the graph
- DfsVertex - Interface in com.codemelon.graph.vertex
-
Utility interface used as shorthand for vertices that implement ColoredVertex
and VisitedVertex, as needed for the most basic kind of depth-first search.
- DirectedDfsVertex<E extends DfsEdgeData> - Class in com.codemelon.graph.vertex
-
Directed vertex supporting the operations required for depth-first search.
- DirectedDfsVertex(EdgeDataFactory<E>) - Constructor for class com.codemelon.graph.vertex.DirectedDfsVertex
-
Constructor from an EdgeDataFactory
- DirectedEdgeDataGraph<T,V extends DirectedEdgeDataVertex<T>> - Class in com.codemelon.graph.graph
-
Directed graph that supports edge data.
- DirectedEdgeDataGraph() - Constructor for class com.codemelon.graph.graph.DirectedEdgeDataGraph
-
Initialize graph to a default initial capacity of 16 vertices
- DirectedEdgeDataGraph(int) - Constructor for class com.codemelon.graph.graph.DirectedEdgeDataGraph
-
Initialize graph to have capacity for the given number of vertices
- DirectedEdgeDataGraph(Collection<V>) - Constructor for class com.codemelon.graph.graph.DirectedEdgeDataGraph
-
Use the vertices in a collection as the initial vertices in the graph
- DirectedEdgeDataVertex<T> - Class in com.codemelon.graph.vertex
-
- DirectedEdgeDataVertex(EdgeDataFactory<T>) - Constructor for class com.codemelon.graph.vertex.DirectedEdgeDataVertex
-
Constructor from an EdgeDataFactory
- DirectedOrderedDfsVertex - Class in com.codemelon.graph.vertex
-
Simple vertex class supporting ordered depth-first search.
- DirectedOrderedDfsVertex() - Constructor for class com.codemelon.graph.vertex.DirectedOrderedDfsVertex
-
- DirectedOrderedDfsVertex.Factory - Enum in com.codemelon.graph.vertex
-
- DirectedShortestPathVertex<E extends ShortestPathEdgeData> - Class in com.codemelon.graph.vertex
-
- DirectedShortestPathVertex(EdgeDataFactory<E>) - Constructor for class com.codemelon.graph.vertex.DirectedShortestPathVertex
-
- DirectedSimpleColoredVertex - Class in com.codemelon.graph.vertex
-
- DirectedSimpleColoredVertex() - Constructor for class com.codemelon.graph.vertex.DirectedSimpleColoredVertex
-
Default constructor initializes graph to null, creates an empty adjacency list
and initializes vertex color to WHITE
- DirectedSimpleGraph<T extends DirectedSimpleVertex> - Class in com.codemelon.graph.graph
-
- DirectedSimpleGraph() - Constructor for class com.codemelon.graph.graph.DirectedSimpleGraph
-
Initialize graph to a default initial capacity of 16 vertices
- DirectedSimpleGraph(int) - Constructor for class com.codemelon.graph.graph.DirectedSimpleGraph
-
Initialize graph to have capacity for the given number of vertices
- DirectedSimpleGraph(Collection<T>) - Constructor for class com.codemelon.graph.graph.DirectedSimpleGraph
-
Use the vertices in a collection as the initial vertices in the graph
- DirectedSimpleVertex - Class in com.codemelon.graph.vertex
-
- DirectedSimpleVertex() - Constructor for class com.codemelon.graph.vertex.DirectedSimpleVertex
-
Default constructor initializes graph to null and creates an empty adjacency list
- DirectedWeightedEdgeGraph<E extends EdgeWeightData,V extends DirectedEdgeDataVertex<E> & EdgeWeightVertex<E>> - Class in com.codemelon.graph.graph
-
Directed graph supporting floating point edge weight.
- DirectedWeightedEdgeGraph() - Constructor for class com.codemelon.graph.graph.DirectedWeightedEdgeGraph
-
Initialize an empty graph using the default values for weightEpsilon and initial capacity.
- DirectedWeightedEdgeGraph(double) - Constructor for class com.codemelon.graph.graph.DirectedWeightedEdgeGraph
-
Initialize an empty graph using the given value for weightEpsilon and default initial capacity.
- DirectedWeightedEdgeGraph(Collection<V>) - Constructor for class com.codemelon.graph.graph.DirectedWeightedEdgeGraph
-
Use the vertices in a collection as the initial vertices in the graph and
set weight epsilon to the default value.
- DirectedWeightedEdgeGraph(Collection<V>, double) - Constructor for class com.codemelon.graph.graph.DirectedWeightedEdgeGraph
-
Use the vertices in a collection as the initial vertices in the graph and
set weight epsilon to the specified value.
- DirectedWeightedEdgeGraph(int) - Constructor for class com.codemelon.graph.graph.DirectedWeightedEdgeGraph
-
Initialize an empty graph to have capacity for the given number of vertices and
the default weight epsilon.
- DirectedWeightedEdgeGraph(int, double) - Constructor for class com.codemelon.graph.graph.DirectedWeightedEdgeGraph
-
Initialize an empty graph to have capacity for the given number of vertices and
the specified weight epsilon.
- DisjointSet<T> - Class in com.codemelon.graph.common
-
Implementation of disjoint set following
CLRS, pp.
- DisjointSet(Collection<T>) - Constructor for class com.codemelon.graph.common.DisjointSet
-
This performs the make-set operation described in
CLRS on all items
in the collection
- DistanceVertex - Interface in com.codemelon.graph.vertex
-
Vertex that maintains a distance field
- EdgeColorData - Interface in com.codemelon.graph.edge
-
Requires that an EdgeData object maintain a color parameter.
- EdgeColorVertex<E extends EdgeColorData> - Interface in com.codemelon.graph.vertex
-
Vertex that maintains a Color for its adjacencies
- edgeCount() - Method in class com.codemelon.graph.graph.AbstractGraph
-
Returns the number of edges in the graph.
- edgeCount() - Method in class com.codemelon.graph.graph.BfsGraph
-
- edgeCount() - Method in class com.codemelon.graph.graph.DirectedEdgeDataGraph
-
- edgeCount() - Method in class com.codemelon.graph.graph.DirectedSimpleGraph
-
- edgeCount() - Method in class com.codemelon.graph.graph.UndirectedEdgeDataGraph
-
- edgeCount() - Method in class com.codemelon.graph.graph.UndirectedSimpleGraph
-
- EdgeDataFactory<T> - Interface in com.codemelon.graph.edge
-
- EdgeDataVertex<T> - Interface in com.codemelon.graph.vertex
-
Specification for vertices supporting edge data.
- EdgeDataVertexFactory<T,V extends EdgeDataVertex<T>> - Interface in com.codemelon.graph.vertex
-
- EdgeResetter - Class in com.codemelon.graph.graph
-
- EdgeType - Enum in com.codemelon.graph.edge
-
Enumeration of different edge types, as are determined in depth-first search.
- EdgeTypeData - Interface in com.codemelon.graph.edge
-
Requires that an EdgeData object maintain an EdgeType (TREE, BACK, FORWARD, CROSS, UNKNOWN)
- EdgeTypeDepthFirstSearch<E extends EdgeTypeData,V extends EdgeTypeDfsVertex<E>> - Class in com.codemelon.graph.algorithm.search
-
This implementation of depth-first search specifies the type
of each edge as it is explored.
- EdgeTypeDepthFirstSearch(AbstractGraph<V>) - Constructor for class com.codemelon.graph.algorithm.search.EdgeTypeDepthFirstSearch
-
Prepare the depth-first search.
- EdgeTypeDfsVertex<T extends EdgeTypeData> - Interface in com.codemelon.graph.vertex
-
Utility interface used as shorthand for vertices that implement DfsVertex, ChildVertex
and EdgeTypeVertex, as needed for a depth-first search in which edge type is to be
determined.
- EdgeTypeVertex<T extends EdgeTypeData> - Interface in com.codemelon.graph.vertex
-
Vertex that maintains an EdgeType for its adjacencies
- EdgeWeightData - Interface in com.codemelon.graph.edge
-
Requires that an EdgeData object maintain a floating point weight value.
- EdgeWeightVertex<T extends EdgeWeightData> - Interface in com.codemelon.graph.vertex
-
Vertex that maintains an edge weight for its adjacencies
- equals(Object) - Method in class com.codemelon.graph.edge.UndirectedWeightedEdge
-
Since weighted edges are undirected, they are equal not only if they
have the same tail and head but also if they have opposite tails and heads.
- equals(Object) - Method in class com.codemelon.graph.vertex.AbstractVertex
-
Don't allow subclasses to override the equals method
- generateTree() - Method in class com.codemelon.graph.algorithm.spanningtree.Kruskal
-
Creates and returns a minimum spanning tree.
- getAdjacencies() - Method in class com.codemelon.graph.vertex.DirectedEdgeDataVertex
-
- getAdjacencies() - Method in class com.codemelon.graph.vertex.DirectedSimpleVertex
-
- getAdjacencies() - Method in interface com.codemelon.graph.vertex.Vertex
-
Returns a set of all adjacent vertices
- getColor() - Method in interface com.codemelon.graph.edge.EdgeColorData
-
Retrieve the color of this EdgeData object
- getColor() - Method in class com.codemelon.graph.edge.SpanningTreeEdgeData
-
- getColor() - Method in interface com.codemelon.graph.vertex.ColoredVertex
-
Get the vertex color
- getColor() - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- getColor() - Method in class com.codemelon.graph.vertex.DirectedSimpleColoredVertex
-
- getColor() - Method in class com.codemelon.graph.vertex.UndirectedBfsVertex
-
- getColor() - Method in class com.codemelon.graph.vertex.UndirectedPrimVertex
-
- getComponent() - Method in interface com.codemelon.graph.vertex.ComponentVertex
-
Get the number of the component to which the vertex belongs
- getComponent() - Method in class com.codemelon.graph.vertex.DirectedOrderedDfsVertex
-
- getDiscoveryTime() - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- getDiscoveryTime() - Method in class com.codemelon.graph.vertex.DirectedOrderedDfsVertex
-
- getDiscoveryTime() - Method in interface com.codemelon.graph.vertex.VisitedVertex
-
Get the vertex's discovery time
- getDistance() - Method in interface com.codemelon.graph.vertex.DistanceVertex
-
Get the value of the distance field
- getDistance() - Method in class com.codemelon.graph.vertex.UndirectedBfsVertex
-
- getEdgeColor(EdgeColorVertex<E>) - Method in interface com.codemelon.graph.vertex.EdgeColorVertex
-
Retrieve the color of the edge whose head is the given vertex
- getEdgeColor(EdgeColorVertex<E>) - Method in class com.codemelon.graph.vertex.UndirectedKruskalVertex
-
- getEdgeData(EdgeDataVertex<T>) - Method in class com.codemelon.graph.vertex.DirectedEdgeDataVertex
-
- getEdgeData(EdgeDataVertex<T>) - Method in interface com.codemelon.graph.vertex.EdgeDataVertex
-
Get data for a particular edge.
- getEdgeType() - Method in class com.codemelon.graph.edge.DfsEdgeData
-
- getEdgeType() - Method in interface com.codemelon.graph.edge.EdgeTypeData
-
Retrieve the type of this EdgeData object
- getEdgeType(EdgeTypeVertex<E>) - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- getEdgeType(EdgeTypeVertex<T>) - Method in interface com.codemelon.graph.vertex.EdgeTypeVertex
-
Retrieve the type of the edge from the calling vertex to the vertex passed
as parameter.
- getEdgeWeight(EdgeWeightVertex<E>) - Method in class com.codemelon.graph.vertex.DirectedShortestPathVertex
-
- getEdgeWeight(EdgeWeightVertex<T>) - Method in interface com.codemelon.graph.vertex.EdgeWeightVertex
-
Retrieve the weight of the edge from the calling vertex to the vertex passed
as parameter.
- getEdgeWeight(EdgeWeightVertex<E>) - Method in class com.codemelon.graph.vertex.UndirectedKruskalVertex
-
- getFinishTime() - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- getFinishTime() - Method in class com.codemelon.graph.vertex.DirectedOrderedDfsVertex
-
- getFinishTime() - Method in interface com.codemelon.graph.vertex.VisitedVertex
-
Get the vertex's finish time
- getGraph() - Method in class com.codemelon.graph.edge.UndirectedWeightedEdge
-
Get the graph to which the edge belongs
- getGraph() - Method in class com.codemelon.graph.vertex.AbstractVertex
-
- getGraph() - Method in interface com.codemelon.graph.vertex.Vertex
-
Returns the graph to which the vertex belongs.
- getParent() - Method in interface com.codemelon.graph.vertex.ChildVertex
-
Get the vertex's parent
- getParent() - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- getParent() - Method in class com.codemelon.graph.vertex.DirectedShortestPathVertex
-
- getParent() - Method in class com.codemelon.graph.vertex.UndirectedBfsVertex
-
- getParent() - Method in class com.codemelon.graph.vertex.UndirectedPrimVertex
-
- getSearchOrder() - Method in class com.codemelon.graph.vertex.DirectedOrderedDfsVertex
-
- getSearchOrder() - Method in interface com.codemelon.graph.vertex.OrderedSearchVertex
-
Get the value of the searchOrder field
- getSortedVertices() - Method in class com.codemelon.graph.algorithm.search.TopologicalSort
-
Returns a linked list of vertices in topologically sorted order.
- getSourceVertex() - Method in class com.codemelon.graph.algorithm.search.BreadthFirstSearch
-
Returns the source vertex specified when search() was called.
- getTransposeGraph() - Method in class com.codemelon.graph.graph.Transposer
-
Returns the transpose of the original graph
- getVertexMap() - Method in class com.codemelon.graph.algorithm.spanningtree.Kruskal
-
Returns a map showing which vertex in the spanning tree corresponds to a given
vertex in the original graph.
- getVertexMap() - Method in class com.codemelon.graph.graph.Transposer
-
Returns a mapping in which the keys are the vertices of the original graph
and the values are the corresponding vertices in the transpose graph.
- getVertices() - Method in class com.codemelon.graph.graph.AbstractGraph
-
Returns a set containing the vertices in the graph.
- getWeight() - Method in interface com.codemelon.graph.edge.EdgeWeightData
-
Retrieve the weight contained in this EdgeData object
- getWeight() - Method in class com.codemelon.graph.edge.ShortestPathEdgeData
-
- getWeight() - Method in class com.codemelon.graph.vertex.DirectedShortestPathVertex
-
- getWeight() - Method in class com.codemelon.graph.vertex.UndirectedPrimVertex
-
- getWeight() - Method in interface com.codemelon.graph.vertex.WeightedVertex
-
Retrieve a vertex's weight.
- getWeightedEdges() - Method in class com.codemelon.graph.graph.UndirectedWeightedEdgeGraph
-
Return a set containing all weighted edges in the graph.
- getWeightEpsilon() - Method in class com.codemelon.graph.graph.DirectedWeightedEdgeGraph
-
- getWeightEpsilon() - Method in class com.codemelon.graph.graph.UndirectedWeightedEdgeGraph
-
- getWeightEpsilon() - Method in interface com.codemelon.graph.graph.WeightedEdgeGraph
-
Retrieve the epsilon used to determine weight equality in the given graph.
- GraphFactory<T extends Vertex> - Interface in com.codemelon.graph.graph
-
- relax(V, V) - Static method in class com.codemelon.graph.algorithm.path.PathUtils
-
- removeAdjacency(Vertex) - Method in class com.codemelon.graph.vertex.DirectedEdgeDataVertex
-
- removeAdjacency(Vertex) - Method in class com.codemelon.graph.vertex.DirectedSimpleVertex
-
- removeAdjacency(Vertex) - Method in class com.codemelon.graph.vertex.UndirectedEdgeDataVertex
-
- removeAdjacency(Vertex) - Method in class com.codemelon.graph.vertex.UndirectedSimpleVertex
-
- removeAdjacency(Vertex) - Method in interface com.codemelon.graph.vertex.Vertex
-
Removes the specified vertex from the adjacency set.
- removeVertex(Vertex) - Method in class com.codemelon.graph.graph.AbstractGraph
-
Remove a vertex from the graph.
- resetColors(AbstractGraph<V>) - Static method in class com.codemelon.graph.graph.EdgeResetter
-
Reset the color of all edges in the graph to WHITE.
- resetColors(AbstractGraph<V>, Color) - Static method in class com.codemelon.graph.graph.EdgeResetter
-
Reset the color of all edges in the graph to the given value.
- resetColors(AbstractGraph<? extends ColoredVertex>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the color of all vertices in the graph to white (typically signifies that the vertex
has not yet been explored).
- resetColors(AbstractGraph<? extends ColoredVertex>, Color) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the color of all vertices in the graph to the given value.
- resetDiscoveryTimes(AbstractGraph<? extends VisitedVertex>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the discovery time of all vertices in the graph to the default value
- resetDiscoveryTimes(AbstractGraph<? extends VisitedVertex>, int) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the discovery time of all vertices in the graph to the given value.
- resetDistances(AbstractGraph<? extends DistanceVertex>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the distance property of all vertices in the graph to the default value.
- resetDistances(AbstractGraph<? extends DistanceVertex>, int) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the distance property of all vertices in the graph to the given value.
- resetFinishTimes(AbstractGraph<? extends VisitedVertex>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the finish time of all vertices in the graph to the default value
- resetFinishTimes(AbstractGraph<? extends VisitedVertex>, int) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the finish time of all vertices in the graph to the given value.
- resetForBfs(AbstractGraph<? extends BfsVertex>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the vertex properties used in breadth-first search
- resetForDfs(AbstractGraph<? extends DfsVertex>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the vertex properties used in edge type depth-first search
- resetForEdgeTypeDfs(AbstractGraph<? extends EdgeTypeDfsVertex<?>>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the vertex properties used in edge type depth-first search
- resetForOrderedDfs(AbstractGraph<? extends OrderedDfsVertex>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the vertex properties used in ordered depth-first search
- resetForPrim(AbstractGraph<V>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
- resetParents(AbstractGraph<? extends ChildVertex>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the parent of all vertices in the graph to null
- resetWeights(AbstractGraph<? extends WeightedVertex>) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the weight of all vertices in the graph to the default value.
- resetWeights(AbstractGraph<? extends WeightedVertex>, double) - Static method in class com.codemelon.graph.graph.VertexResetter
-
Reset the weight of all vertices in the graph to the given value.
- ReverseSearchOrderComparator - Class in com.codemelon.graph.vertex
-
- ReverseSearchOrderComparator() - Constructor for class com.codemelon.graph.vertex.ReverseSearchOrderComparator
-
- run() - Method in class com.codemelon.graph.algorithm.search.StronglyConnectedComponents
-
Marks the strongly connected components in the graph by setting
the treeNumber field of each vertex accordingly.
- search(T) - Method in class com.codemelon.graph.algorithm.search.BreadthFirstSearch
-
Executes the search on the input graph.
- search() - Method in class com.codemelon.graph.algorithm.search.DepthFirstSearch
-
Conduct a depth-first search on the graph, visiting vertices
in no predetermined order.
- search() - Method in class com.codemelon.graph.algorithm.search.EdgeTypeDepthFirstSearch
-
Conduct a depth-first search on the graph, visiting vertices
in no predetermined order.
- search() - Method in class com.codemelon.graph.algorithm.search.OrderedDepthFirstSearch
-
Conduct a depth-first search on the graph, visiting vertices
in the order specified in the constructor.
- SearchOrderComparator - Class in com.codemelon.graph.vertex
-
- SearchOrderComparator() - Constructor for class com.codemelon.graph.vertex.SearchOrderComparator
-
- setColor(Color) - Method in interface com.codemelon.graph.edge.EdgeColorData
-
Set the color contained in this EdgeData object
- setColor(Color) - Method in class com.codemelon.graph.edge.SpanningTreeEdgeData
-
- setColor(Color) - Method in interface com.codemelon.graph.vertex.ColoredVertex
-
Set the vertex color
- setColor(Color) - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- setColor(Color) - Method in class com.codemelon.graph.vertex.DirectedSimpleColoredVertex
-
- setColor(Color) - Method in class com.codemelon.graph.vertex.UndirectedBfsVertex
-
- setColor(Color) - Method in class com.codemelon.graph.vertex.UndirectedPrimVertex
-
- setComponent(int) - Method in interface com.codemelon.graph.vertex.ComponentVertex
-
Set the number of the component to which the vertex belongs
- setComponent(int) - Method in class com.codemelon.graph.vertex.DirectedOrderedDfsVertex
-
- setDiscoveryTime(int) - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- setDiscoveryTime(int) - Method in class com.codemelon.graph.vertex.DirectedOrderedDfsVertex
-
- setDiscoveryTime(int) - Method in interface com.codemelon.graph.vertex.VisitedVertex
-
Set the time at which the vertex was discovered
- setDistance(int) - Method in interface com.codemelon.graph.vertex.DistanceVertex
-
Set the distance field
- setDistance(int) - Method in class com.codemelon.graph.vertex.UndirectedBfsVertex
-
- setEdgeColor(EdgeColorVertex<E>, Color) - Method in interface com.codemelon.graph.vertex.EdgeColorVertex
-
Set the color of the edge whose head is the given vertex.
- setEdgeColor(EdgeColorVertex<E>, Color) - Method in class com.codemelon.graph.vertex.UndirectedKruskalVertex
-
- setEdgeType(EdgeType) - Method in class com.codemelon.graph.edge.DfsEdgeData
-
- setEdgeType(EdgeType) - Method in interface com.codemelon.graph.edge.EdgeTypeData
-
Set the EdgeType contained in this EdgeData object
- setEdgeType(EdgeTypeVertex<E>, EdgeType) - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- setEdgeType(EdgeTypeVertex<T>, EdgeType) - Method in interface com.codemelon.graph.vertex.EdgeTypeVertex
-
Set the type of the edge from the calling vertex to the vertex passed
as parameter
- setEdgeWeight(EdgeWeightVertex<E>, double) - Method in class com.codemelon.graph.vertex.DirectedShortestPathVertex
-
- setEdgeWeight(EdgeWeightVertex<T>, double) - Method in interface com.codemelon.graph.vertex.EdgeWeightVertex
-
Set the weight of the edge from the calling vertex to the vertex passed
as parameter.
- setEdgeWeight(EdgeWeightVertex<E>, double) - Method in class com.codemelon.graph.vertex.UndirectedKruskalVertex
-
- setFinishTime(int) - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- setFinishTime(int) - Method in class com.codemelon.graph.vertex.DirectedOrderedDfsVertex
-
- setFinishTime(int) - Method in interface com.codemelon.graph.vertex.VisitedVertex
-
Set the time at which the vertex visit was finished
- setGraph(AbstractGraph<? extends Vertex>) - Method in class com.codemelon.graph.vertex.AbstractVertex
-
- setGraph(AbstractGraph<? extends Vertex>) - Method in interface com.codemelon.graph.vertex.Vertex
-
Set the graph to which the vertex belongs
- setParent(ChildVertex) - Method in interface com.codemelon.graph.vertex.ChildVertex
-
Set the parent of the given vertex
- setParent(ChildVertex) - Method in class com.codemelon.graph.vertex.DirectedDfsVertex
-
- setParent(ChildVertex) - Method in class com.codemelon.graph.vertex.DirectedShortestPathVertex
-
- setParent(ChildVertex) - Method in class com.codemelon.graph.vertex.UndirectedBfsVertex
-
- setParent(ChildVertex) - Method in class com.codemelon.graph.vertex.UndirectedPrimVertex
-
- setSearchOrder(int) - Method in class com.codemelon.graph.vertex.DirectedOrderedDfsVertex
-
- setSearchOrder(int) - Method in interface com.codemelon.graph.vertex.OrderedSearchVertex
-
Set the value of the searchOrder field
- setWeight(double) - Method in interface com.codemelon.graph.edge.EdgeWeightData
-
Set the weight contained in this EdgeData object
- setWeight(double) - Method in class com.codemelon.graph.edge.ShortestPathEdgeData
-
- setWeight(double) - Method in class com.codemelon.graph.vertex.DirectedShortestPathVertex
-
- setWeight(double) - Method in class com.codemelon.graph.vertex.UndirectedPrimVertex
-
- setWeight(double) - Method in interface com.codemelon.graph.vertex.WeightedVertex
-
Set vertex weight to the specified value.
- ShortestPathEdgeData - Class in com.codemelon.graph.edge
-
- ShortestPathEdgeData() - Constructor for class com.codemelon.graph.edge.ShortestPathEdgeData
-
- ShortestPathEdgeData(double) - Constructor for class com.codemelon.graph.edge.ShortestPathEdgeData
-
- ShortestPathEdgeData.Factory - Enum in com.codemelon.graph.edge
-
- ShortestPathVertex<E extends EdgeWeightData> - Interface in com.codemelon.graph.vertex
-
- SpanningTreeEdgeData - Class in com.codemelon.graph.edge
-
- SpanningTreeEdgeData() - Constructor for class com.codemelon.graph.edge.SpanningTreeEdgeData
-
- SpanningTreeEdgeData(double, Color) - Constructor for class com.codemelon.graph.edge.SpanningTreeEdgeData
-
- SpanningTreeEdgeData.Factory - Enum in com.codemelon.graph.edge
-
- StronglyConnectedComponents<T extends DfsVertex & ComponentVertex,U extends OrderedDfsVertex> - Class in com.codemelon.graph.algorithm.search
-
Identify the strongly connected components in a graph using an int value
to mark the component to which each vertex belongs.
- StronglyConnectedComponents(AbstractGraph<T>, VertexFactory<U>, GraphFactory<U>) - Constructor for class com.codemelon.graph.algorithm.search.StronglyConnectedComponents
-
Prepare to mark the graph for strongly connected components.
- UndirectedBfsVertex - Class in com.codemelon.graph.vertex
-
Undirected vertex supporting the operations required for breadth-first search.
- UndirectedBfsVertex() - Constructor for class com.codemelon.graph.vertex.UndirectedBfsVertex
-
- UndirectedEdgeDataGraph<E,V extends UndirectedEdgeDataVertex<E>> - Class in com.codemelon.graph.graph
-
Undirected graph that supports edge data.
- UndirectedEdgeDataGraph() - Constructor for class com.codemelon.graph.graph.UndirectedEdgeDataGraph
-
Initialize graph to a default initial capacity of 16 vertices
- UndirectedEdgeDataGraph(int) - Constructor for class com.codemelon.graph.graph.UndirectedEdgeDataGraph
-
Initialize graph to have capacity for the given number of vertices
- UndirectedEdgeDataGraph(Collection<V>) - Constructor for class com.codemelon.graph.graph.UndirectedEdgeDataGraph
-
Use the vertices in a collection as the initial vertices in the graph
- UndirectedEdgeDataVertex<T> - Class in com.codemelon.graph.vertex
-
- UndirectedEdgeDataVertex(EdgeDataFactory<T>) - Constructor for class com.codemelon.graph.vertex.UndirectedEdgeDataVertex
-
Constructor from an EdgeDataFactory
- UndirectedKruskalVertex<E extends SpanningTreeEdgeData> - Class in com.codemelon.graph.vertex
-
Undirected vertex supporting the functions necessary for Kruskal's algorithm.
- UndirectedKruskalVertex(EdgeDataFactory<E>) - Constructor for class com.codemelon.graph.vertex.UndirectedKruskalVertex
-
Construct vertex from a factory for building appropriate EdgeData objects.
- UndirectedKruskalVertexBuilder<E extends SpanningTreeEdgeData> - Class in com.codemelon.graph.vertex
-
- UndirectedKruskalVertexBuilder(EdgeDataFactory<E>) - Constructor for class com.codemelon.graph.vertex.UndirectedKruskalVertexBuilder
-
- UndirectedPrimVertex<E extends SpanningTreeEdgeData> - Class in com.codemelon.graph.vertex
-
Undirected vertex supporting the functions necessary for Prim's algorithm.
- UndirectedPrimVertex(EdgeDataFactory<E>) - Constructor for class com.codemelon.graph.vertex.UndirectedPrimVertex
-
Construct vertex from a factory for building appropriate EdgeData objects,
initialize vertex weight and color to the default values and set vertex
parent to null.
- UndirectedSimpleGraph<T extends UndirectedSimpleVertex> - Class in com.codemelon.graph.graph
-
- UndirectedSimpleGraph() - Constructor for class com.codemelon.graph.graph.UndirectedSimpleGraph
-
Initialize graph to a default initial capacity of 16 vertices
- UndirectedSimpleGraph(int) - Constructor for class com.codemelon.graph.graph.UndirectedSimpleGraph
-
Initialize graph to have capacity for the given number of vertices
- UndirectedSimpleGraph(Collection<T>) - Constructor for class com.codemelon.graph.graph.UndirectedSimpleGraph
-
Use the vertices in a collection as the initial vertices in the graph
- UndirectedSimpleVertex - Class in com.codemelon.graph.vertex
-
Vertex to be used in undirected graphs.
- UndirectedSimpleVertex() - Constructor for class com.codemelon.graph.vertex.UndirectedSimpleVertex
-
Default constructor initializes graph to null and creates an empty adjacency list
- UndirectedWeightedEdge<E extends EdgeWeightData,V extends UndirectedEdgeDataVertex<E> & EdgeWeightVertex<E>> - Class in com.codemelon.graph.edge
-
Immutable, undirected edges that maintain a floating point weight.
- UndirectedWeightedEdge(V, V) - Constructor for class com.codemelon.graph.edge.UndirectedWeightedEdge
-
- UndirectedWeightedEdgeGraph<E extends EdgeWeightData,V extends UndirectedEdgeDataVertex<E> & EdgeWeightVertex<E>> - Class in com.codemelon.graph.graph
-
Undirected graph supporting floating point edge weight.
- UndirectedWeightedEdgeGraph() - Constructor for class com.codemelon.graph.graph.UndirectedWeightedEdgeGraph
-
Initialize an empty graph using the default values for weightEpsilon and initial capacity.
- UndirectedWeightedEdgeGraph(double) - Constructor for class com.codemelon.graph.graph.UndirectedWeightedEdgeGraph
-
Initialize an empty graph using the given value for weightEpsilon and default initial capacity.
- UndirectedWeightedEdgeGraph(Collection<V>) - Constructor for class com.codemelon.graph.graph.UndirectedWeightedEdgeGraph
-
Use the vertices in a collection as the initial vertices in the graph and
set weight epsilon to the default value.
- UndirectedWeightedEdgeGraph(Collection<V>, double) - Constructor for class com.codemelon.graph.graph.UndirectedWeightedEdgeGraph
-
Use the vertices in a collection as the initial vertices in the graph and
set weight epsilon to the specified value.
- UndirectedWeightedEdgeGraph(int) - Constructor for class com.codemelon.graph.graph.UndirectedWeightedEdgeGraph
-
Initialize an empty graph to have capacity for the given number of vertices and
the default weight epsilon.
- UndirectedWeightedEdgeGraph(int, double) - Constructor for class com.codemelon.graph.graph.UndirectedWeightedEdgeGraph
-
Initialize an empty graph to have capacity for the given number of vertices and
the specified weight epsilon.
- union(T, T) - Method in class com.codemelon.graph.common.DisjointSet
-
Perform a union on the sets to which x and y belong.
- valueOf(String) - Static method in enum com.codemelon.graph.common.Color
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.codemelon.graph.edge.DfsEdgeData.Factory
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.codemelon.graph.edge.EdgeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.codemelon.graph.edge.ShortestPathEdgeData.Factory
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.codemelon.graph.edge.SpanningTreeEdgeData.Factory
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.codemelon.graph.graph.OrderedDfsGraphFactory
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.codemelon.graph.vertex.DirectedOrderedDfsVertex.Factory
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.codemelon.graph.common.Color
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.codemelon.graph.edge.DfsEdgeData.Factory
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.codemelon.graph.edge.EdgeType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.codemelon.graph.edge.ShortestPathEdgeData.Factory
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.codemelon.graph.edge.SpanningTreeEdgeData.Factory
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.codemelon.graph.graph.OrderedDfsGraphFactory
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.codemelon.graph.vertex.DirectedOrderedDfsVertex.Factory
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- Vertex - Interface in com.codemelon.graph.vertex
-
Basic specification which any Vertex class must implement
- vertexCount() - Method in class com.codemelon.graph.graph.AbstractGraph
-
Number of vertices in the graph
- VertexFactory<V extends Vertex> - Interface in com.codemelon.graph.vertex
-
Requires a factory method for creating new vertices of the given type.
- vertexIterator() - Method in class com.codemelon.graph.graph.AbstractGraph
-
Returns an iterator over the vertices in the graph
- VertexResetter - Class in com.codemelon.graph.graph
-
Static methods for resetting all vertices in a graph
- VisitedVertex - Interface in com.codemelon.graph.vertex
-
Vertex that supports fields for marking discovery and finish times, as required
in depth=first search