Package edu.umd.cs.findbugs.ba.ch
Class InheritanceGraph
java.lang.Object
edu.umd.cs.findbugs.graph.AbstractGraph<InheritanceEdge,ClassVertex>
edu.umd.cs.findbugs.ba.ch.InheritanceGraph
- All Implemented Interfaces:
Graph<InheritanceEdge,
ClassVertex>
Graph of inheritance relationships.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InheritanceEdge
allocateEdge
(ClassVertex source, ClassVertex target) createEdge
(ClassVertex source, ClassVertex target) Add a new edge to the graph.Methods inherited from class edu.umd.cs.findbugs.graph.AbstractGraph
addVertex, containsVertex, edgeIterator, getNumEdgeLabels, getNumEdges, getNumIncomingEdges, getNumOutgoingEdges, getNumVertexLabels, getNumVertices, incomingEdgeIterator, lookupEdge, outgoingEdgeIterator, predecessorIterator, removeEdge, removeVertex, setNumEdgeLabels, setNumVertexLabels, successorIterator, vertexIterator, vertices
-
Constructor Details
-
InheritanceGraph
public InheritanceGraph()
-
-
Method Details
-
allocateEdge
- Specified by:
allocateEdge
in classAbstractGraph<InheritanceEdge,
ClassVertex>
-
createEdge
Description copied from interface:Graph
Add a new edge to the graph. Duplicate edges (with same source and target vertices) are allowed.- Specified by:
createEdge
in interfaceGraph<InheritanceEdge,
ClassVertex> - Overrides:
createEdge
in classAbstractGraph<InheritanceEdge,
ClassVertex> - Parameters:
source
- the source vertextarget
- the target vertex- Returns:
- the new edge
-