A B C D E F G H I M N O P R S T V W 

A

AbstractGraph<V,E> - Class in <Unnamed>
AbstractGraph represents a mostly-complete implementation of the Graph interface.
AbstractGraph() - Constructor for class AbstractGraph
Constructs a new empty undirected, unweighted graph.
AbstractGraph(boolean, boolean) - Constructor for class AbstractGraph
Constructs a new empty graph that can be directed or undirected, weighted or unweighted.
addEdge(V, V) - Method in class AbstractGraph
Adds an edge between the given two vertices, if none already exists.
addEdge(V, V, E) - Method in class AbstractGraph
Adds an edge between the given two vertices, if none already exists, storing the given information in the edge.
addEdge(V, V, int) - Method in class AbstractGraph
Adds an edge between the given two vertices, if none already exists.
addEdge(V, V, E, int) - Method in class AbstractGraph
Adds an edge with the given information and weight between the given two vertices, storing the given information in the edge.
addEdge(V, V) - Method in interface Graph
Adds an edge between the given two vertices, if none already exists.
addEdge(V, V, E) - Method in interface Graph
Adds an edge between the given two vertices, if none already exists, storing the given information in the edge.
addEdge(V, V, int) - Method in interface Graph
Adds an edge between the given two vertices, if none already exists.
addEdge(V, V, E, int) - Method in interface Graph
Adds an edge with the given information and weight between the given two vertices, storing the given information in the edge.
addVertex(V) - Method in class AbstractGraph
Adds the given element as a vertex in this graph.
addVertex(V) - Method in interface Graph
Adds the given element as a vertex in this graph.

B

BaconNumberFinder - Class in <Unnamed>
...
BaconNumberFinder(Graph<String, String>) - Constructor for class BaconNumberFinder
...
buildGraph(Scanner, File, double) - Static method in class MainKevinBacon
Reads the given input file data and uses it to construct and return a graph of actors and the movies they have appeared in.
buildGraph(Scanner, File, double) - Static method in class MainKevinBacon2
Reads the given input file data and uses it to construct and return a graph of actors and the movies they have appeared in.

C

checkForNegative(int) - Static method in class AbstractGraph
Tests the given integer to see whether it is negative.
checkForNull(Object...) - Static method in class AbstractGraph
Tests the given arguments for null.
CheckSearchableGraph - Class in <Unnamed>
 
CheckSearchableGraph() - Constructor for class CheckSearchableGraph
 
checkVertex(V) - Method in class AbstractGraph
Tests the given vertex for null and for membership in the graph.
checkVertices(V, V) - Method in class AbstractGraph
Tests the given vertices for null and for membership in the graph.
clear() - Method in class AbstractGraph
Removes all vertices and edges from this graph.
clear() - Method in interface Graph
Removes all vertices and edges from this graph.
clear() - Method in class Vertex
Resets the previous, visited, cost, and number data fields to their original values.
clearEdges() - Method in class AbstractGraph
Removes all edges from this graph.
clearEdges() - Method in interface Graph
Removes all edges from this graph.
clearVertexInfo() - Method in class AbstractGraph
Resets all distance / previous / visited markings from vertex info objects in this graph.
contains(V) - Method in class Edge
Returns true if this edge touches the given vertex, that is, if it is the start or end of this edge.
containsEdge(E) - Method in class AbstractGraph
Returns whether this graph contains at least one edge with the given information stored in it.
containsEdge(V, V) - Method in class AbstractGraph
Returns whether this graph contains an edge between the given vertices.
containsEdge(E) - Method in interface Graph
Returns whether this graph contains at least one edge with the given information stored in it.
containsEdge(V, V) - Method in interface Graph
Returns whether this graph contains an edge between the given vertices.
containsVertex(V) - Method in class AbstractGraph
Returns whether this graph contains the given vertex.
containsVertex(V) - Method in interface Graph
Returns whether this graph contains the given vertex.
cost(List<V>) - Method in class AbstractGraph
Returns the total cost of following the given path of vertices in this graph, which is the sum of the edge weights between the path's vertices from start to end.
cost(List<V>) - Method in interface Graph
Returns the total cost of following the given path of vertices in this graph, which is the sum of the edge weights between the path's vertices from start to end.
cost() - Method in class Vertex
Returns the value of the internal 'cost' to reach this vertex.
create() - Static method in class SearchableGraph
A Guava-like static factory method that returns a new searchable undirected, unweighted graph.
create(boolean) - Static method in class SearchableGraph
A Guava-like static factory method that returns a new empty unweighted searchable graph that can be directed or undirected.
create(boolean, boolean) - Static method in class SearchableGraph
A Guava-like static factory method that returns a new empty searchable graph that can be directed or undirected, weighted or unweighted.

D

DEFAULT_WEIGHT - Static variable in class Edge
Default weight of an edge in an undirected graph (1).
degree(V) - Method in class AbstractGraph
Returns the number of outgoing edges from the given vertex.
degree(V) - Method in interface Graph
Returns the number of outgoing edges from the given vertex.

E

edge(V, V) - Method in class AbstractGraph
Returns the extra information stored in the edge between vertices v1 and v2, if one exists.
Edge<V,E> - Class in <Unnamed>
An Edge object represents information stored in a graph edge, including its vertices, weight, and any extra edge info.
Edge(V, V, E) - Constructor for class Edge
Constructs information about the given edge with the default edge weight.
Edge(V, V, E, int) - Constructor for class Edge
Constructs information about the given edge with the given weight.
edge() - Method in class Edge
Returns the extra information, if any, stored in this edge.
edge(V, V) - Method in interface Graph
Returns the extra information stored in the edge between vertices v1 and v2, if one exists.
edgeCount() - Method in class AbstractGraph
Returns the total number of edges in this graph.
edgeCount() - Method in interface Graph
Returns the total number of edges in this graph.
edges() - Method in class AbstractGraph
Returns a collection of information about all unique edges in this graph.
edges() - Method in interface Graph
Returns a collection of all edges in this graph.
edgeWeight(V, V) - Method in class AbstractGraph
Returns the weight of the edge between vertices v1 and v2, if one exists.
edgeWeight(V, V) - Method in interface Graph
Returns the weight of the edge between vertices v1 and v2, if one exists.
end() - Method in class Edge
Returns the ending vertex of this edge.
equals(Object) - Method in class AbstractGraph
Returns true if o refers to a graph with the same vertices, edges, and other properties (directed vs.
equals(Object) - Method in class Edge
Returns true if o refers to an Edge object with identical state to this Edge object.
equals(Object) - Method in class Vertex
Returns true if o refers to a Vertex object correspending to the same underlying 'V' object as this one.

F

findBaconNumber(String) - Method in class BaconNumberFinder
...
Flights - Class in <Unnamed>
 
Flights() - Constructor for class Flights
 

G

getActorName(Scanner) - Static method in class MainKevinBacon
Prompts the user to type an actor's name and returns the name typed.
getActorName(Scanner) - Static method in class MainKevinBacon2
Prompts the user to type an actor's name and returns the name typed.
getPercent(Scanner) - Static method in class MainKevinBacon
Prompts the user to type a percentage of movies in the input file to use, and returns the percentage typed, defaulting to 100.0.
getPercent(Scanner) - Static method in class MainKevinBacon2
Prompts the user to type a percentage of movies in the input file to use, and returns the percentage typed, defaulting to 100.0.
Graph<V,E> - Interface in <Unnamed>
A Graph is a collection of vertices and edges between vertices.
GraphTest2 - Class in <Unnamed>
 
GraphTest2() - Constructor for class GraphTest2
 

H

hashCode() - Method in class AbstractGraph
Returns an integer code for placing this graph into a hash-based collection.
hashCode() - Method in class Edge
Returns an integer code for placing this edge into a hash-based collection.
hashCode() - Method in class Vertex
Returns an integer code for placing this vertex into a hash-based collection.

I

inDegree(V) - Method in class AbstractGraph
Returns the number of incoming edges to the given vertex.
inDegree(V) - Method in interface Graph
Returns the number of incoming edges to the given vertex.
isDirected() - Method in class AbstractGraph
Returns true if this is a directed graph, and false if it is undirected.
isDirected() - Method in interface Graph
Returns true if this is a directed graph, and false if it is undirected.
isEmpty() - Method in class AbstractGraph
Returns true if this graph does not contain any vertices or edges.
isEmpty() - Method in interface Graph
Returns true if this graph does not contain any vertices or edges.
isReachable(V, V) - Method in interface Graph
Returns true if there is any path in this graph that leads from the given starting vertex v1 to the given ending vertex v2.
isReachable(V, V) - Method in class SearchableGraph
Returns true if there is any path in this graph that leads from the given starting vertex v1 to the given ending vertex v2.
isWeighted() - Method in class AbstractGraph
Returns true if this is a weighted graph and false if it is unweighted.
isWeighted() - Method in interface Graph
Returns true if this is a weighted graph and false if it is unweighted.

M

main(String[]) - Static method in class CheckSearchableGraph
Runs the checks.
main(String[]) - Static method in class Flights
 
main(String[]) - Static method in class GraphTest2
 
main(String[]) - Static method in class MainKevinBacon
Runs the program.
main(String[]) - Static method in class MainKevinBacon2
Runs the program.
MainKevinBacon - Class in <Unnamed>
This is the main client program to run your Kevin Bacon simulation.
MainKevinBacon() - Constructor for class MainKevinBacon
 
MainKevinBacon2 - Class in <Unnamed>
This is the main client program to run your Kevin Bacon simulation.
MainKevinBacon2() - Constructor for class MainKevinBacon2
 
MAX_COST - Static variable in class Vertex
Maximum possible cost to reach a vertex from another; treat this as "infinity".
minimumWeightPath(V, V) - Method in interface Graph
Returns a list of vertices representing a minimum-weight path from vertex v1 to vertex v2.
minimumWeightPath(V, V) - Method in class SearchableGraph
Returns a list of vertices representing a minimum-weight path from vertex v1 to vertex v2.

N

neighbors(V) - Method in class AbstractGraph
Returns a collection containing all neighbors, that is, all vertices that are directly connected to the given vertex by an outgoing edge.
neighbors(V) - Method in interface Graph
Returns a collection containing all neighbors, that is, all vertices that are directly connected to the given vertex by an outgoing edge.
number() - Method in class Vertex
Returns the value of the internal 'number' vertex marker for this vertex.

O

openFile(Scanner) - Static method in class MainKevinBacon
Prompts the user to enter a file name containing movie input data.
openFile(Scanner) - Static method in class MainKevinBacon2
Prompts the user to enter a file name containing movie input data.
outDegree(V) - Method in class AbstractGraph
Returns the number of outgoing edges from the given vertex.
outDegree(V) - Method in interface Graph
Returns the number of outgoing edges from the given vertex.

P

previous() - Method in class Vertex
Returns the value of the internal 'previous' vertex marker for this vertex.
printIntro() - Static method in class MainKevinBacon
Displays an introductory message explaining the program to the user.
printIntro() - Static method in class MainKevinBacon2
Displays an introductory message explaining the program to the user.
printLots(Graph<V, E>) - Static method in class Flights
 
printLots(Graph<V, E>) - Static method in class GraphTest2
 

R

removeEdge(E) - Method in class AbstractGraph
Removes a single edge that exists with the given extra info stored in it.
removeEdge(V, V) - Method in class AbstractGraph
Removes any edge that exists from vertex v1 to vertex v2.
removeEdge(E) - Method in interface Graph
Removes any edge(s) that exist with the given extra info stored in it/them.
removeEdge(V, V) - Method in interface Graph
Removes any edge that exists from vertex v1 to vertex v2.
removeVertex(V) - Method in class AbstractGraph
Removes the given vertex from this graph, along with all edges that were touching it.
removeVertex(V) - Method in interface Graph
Removes the given vertex from this graph, along with all edges that were touching it.

S

SearchableGraph<V,E> - Class in <Unnamed>
A SearchableGraph implements the Graph interface by writing three path-finding methods: isReachable (DFS), shortestPath (BFS), and minimumWeightPath (Dijkstra's algorithm).
SearchableGraph() - Constructor for class SearchableGraph
Constructs a new empty undirected, unweighted graph.
SearchableGraph(boolean, boolean) - Constructor for class SearchableGraph
Constructs a new empty graph that can be directed or undirected, weighted or unweighted.
setCost(int) - Method in class Vertex
Sets the value of the internal 'cost' to reach this vertex.
setEdge(E) - Method in class Edge
Modifies this edge's extra information to be the given value.
setNumber(int) - Method in class Vertex
Sets the value of the internal 'number' vertex marker for this vertex.
setPrevious(V) - Method in class Vertex
Sets the value of the internal 'previous' vertex marker for this vertex.
setVisited() - Method in class Vertex
Sets the value of the internal 'previous' vertex marker to true for this vertex.
setVisited(boolean) - Method in class Vertex
Sets the value of the internal 'previous' vertex marker for this vertex.
setWeight(int) - Method in class Edge
Modifies this edge's weight to be the given value.
shortestPath(V, V) - Method in interface Graph
Returns the path in this graph with the least number of vertices that leads from the given starting vertex v1 to the given ending vertex v2.
shortestPath(V, V) - Method in class SearchableGraph
Returns the path in this graph with the least number of vertices that leads from the given starting vertex v1 to the given ending vertex v2.
start() - Method in class Edge
Returns the starting vertex of this edge.

T

toString() - Method in class AbstractGraph
Returns a string representation of this graph and its vertices and edges, such as "{V={A, B, C}, E={(A, B), (A, C)}}".
toString() - Method in class Edge
Returns a string representation of the information about this edge.
toString() - Method in interface Graph
Returns a string representation of this graph and its vertices and edges, such as "{V={A, B, C}, E={(A, B), (A, C)}}".
toString() - Method in class Vertex
Returns a string representation of the information about this vertex.
toStringDetailed() - Method in class AbstractGraph
Returns a detailed multi-line string representation of this graph and its vertices, such as "Graph{ vertices: A -> neighbors: [B, C] B -> neighbors: [A] C -> neighbors: [A] edges: (A,B,weight=2) (A,C) }"
toStringDetailed() - Method in interface Graph
Returns a detailed multi-line string representation of this graph and its vertices, such as "Graph{ vertices: A -> neighbors: [B, C] B -> neighbors: [A] C -> neighbors: [A] edges: (A,B,weight=2) (A,C) }"

V

Vertex<V> - Class in <Unnamed>
A Vertex object represents extra information associated with each vertex.
Vertex(V) - Constructor for class Vertex
Constructs information for the given vertex.
vertex() - Method in class Vertex
Returns the vertex value that this Vertex object stores information about.
vertexCount() - Method in class AbstractGraph
Returns the number of vertices in this graph.
vertexCount() - Method in interface Graph
Returns the number of vertices in this graph.
vertexInfo(V) - Method in class AbstractGraph
Returns the Vertex object associated with the given vertex.
vertexInfos() - Method in class AbstractGraph
Returns a read-only view of all internal data about vertex information.
vertices() - Method in class AbstractGraph
Returns a collection of the vertices in this graph.
vertices() - Method in interface Graph
Returns a collection of the vertices in this graph.
visited() - Method in class Vertex
Returns the value of the internal 'visited' vertex marker for this vertex.

W

weight() - Method in class Edge
Returns the weight of this edge.
A B C D E F G H I M N O P R S T V W