Translate the graph class from C++ to Java and test the following functions using a graph:
graph
bfs
dfs
strongComponents
shortestPath
minSpanTree