Package pascal.taie.util.graph
Interface Graph<N>
- Type Parameters:
N
- type of nodes
- All Superinterfaces:
Iterable<N>
,Serializable
- All Known Implementing Classes:
AbstractCallGraph
,CSCallGraph
,DefaultCallGraph
,MergedSCCGraph
,ObjectFlowGraph
,PointerFlowGraph
,ReverseGraph
,SimpleGraph
Representation of a directed graph.
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
getInDegreeOf
(N node) getInEdgesOf
(N node) getNodes()
default int
default int
getOutDegreeOf
(N node) getOutEdgesOf
(N node) getPredsOf
(N node) getSuccsOf
(N node) default boolean
default boolean
default boolean
iterator()
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
hasNode
- Returns:
true
if this graph has given node, otherwisefalse
.
-
hasEdge
- Returns:
true
if this graph has an edge from given source to target, otherwisefalse
.
-
hasEdge
- Returns:
- true if this graph has the given edge, otherwise false.
-
getPredsOf
- Returns:
- the predecessors of given node in this graph.
-
getSuccsOf
- Returns:
- the successors of given node in this graph.
-
getInEdgesOf
- Returns:
- incoming edges of the given node.
-
getInDegreeOf
- Returns:
- the number of in edges of the given node.
-
getOutEdgesOf
- Returns:
- outgoing edges of the given node.
-
getOutDegreeOf
- Returns:
- the number of out edges of the given node.
-
getNodes
- Returns:
- all nodes of this graph.
-
getNumberOfNodes
default int getNumberOfNodes()- Returns:
- the number of the nodes in this graph.
-
iterator
-