|
|
@ -433,11 +433,9 @@ public class DAG<Node, NodeInfo, EdgeInfo> { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private Set<Node> getNeighborNodes(Node node, final Map<Node, Map<Node, EdgeInfo>> edges) { |
|
|
|
private Set<Node> getNeighborNodes(Node node, final Map<Node, Map<Node, EdgeInfo>> edges) { |
|
|
|
final Map<Node, EdgeInfo> neighborEdges = edges.get(node); |
|
|
|
final Map<Node, EdgeInfo> neighborEdges = edges.get(node); |
|
|
|
|
|
|
|
|
|
|
|
if (neighborEdges == null) { |
|
|
|
if (neighborEdges == null) { |
|
|
|
return Collections.emptySet(); |
|
|
|
return Collections.emptySet(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return neighborEdges.keySet(); |
|
|
|
return neighborEdges.keySet(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|