Getting all edges going out from a node in jgrapht
You can use Graphs.predecessorListOf and Graphs.successorListOf apis directly.
You can access the outgoing edges of a node(vertex) with outgoingEdgesOf
method of a graph object.
Set<MyEdge> edges = myGraph.outgoingEdgesOf(sourceNode);
Also, you can use incomingEdgesOf
for the incoming edges.
If you want to access all edges of a node then use
graph.edgesOf(source)