Interface LabeledEdgeManager<T,U>
- Type Parameters:
T- type of nodes in this graphU- types of edge labels.
- All Superinterfaces:
EdgeManager<T>
- All Known Subinterfaces:
IFlowGraph, LabeledGraph<T,U>, NumberedLabeledEdgeManager<T, U>, NumberedLabeledGraph<T, I>
- All Known Implementing Classes:
AbstractDemandFlowGraph, AbstractFlowGraph, AbstractLabeledGraph, AbstractNumberedLabeledGraph, DemandPointerFlowGraph, DemandValueFlowGraph, PDG, SlowSparseNumberedLabeledGraph, SparseNumberedLabeledEdgeManager
An object which tracks labeled edges in a graph.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadds an edge with some label@Nullable USets the default object used as label for operations where no specific edge label is provided.getEdgeLabels(T src, T dst) Returns a set of all labeled edges between node src and node dstgetPredLabels(T N) intgetPredNodeCount(T N, U label) Return the number ofimmediate predecessornodes of this Node in the Graph on edges with some label.getPredNodes(T N, Predicate<U> pred) getPredNodes(T N, U label) Return an Iterator over the immediate predecessor nodes of this Node in the Graph on edges with some label.getSuccLabels(T N) intgetSuccNodeCount(T N, U label) Return the number ofimmediate successornodes of this Node in the GraphgetSuccNodes(T N, U label) Return an Iterator over the immediate successor nodes of this Node in the Graph on edges with some label.booleanvoidremoveEdge(T src, T dst, U label) Methods inherited from interface EdgeManager
addEdge, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeOutgoingEdges
-
Method Details
-
getDefaultLabel
@Nullable U getDefaultLabel()Sets the default object used as label for operations where no specific edge label is provided. This is due to compatibility with the EdgeManager interface -
getPredNodes
-
getPredNodes
-
getPredLabels
-
getPredNodeCount
Return the number ofimmediate predecessornodes of this Node in the Graph on edges with some label.- Returns:
- the number of immediate predecessor Nodes of this Node in the Graph.
-
getSuccNodes
-
getSuccLabels
-
getSuccNodeCount
Return the number ofimmediate successornodes of this Node in the Graph- Returns:
- the number of immediate successor Nodes of this Node in the Graph.
-
addEdge
-
removeEdge
- Throws:
UnsupportedOperationException
-
hasEdge
-
getEdgeLabels
-