Package ghidra.util.graph
Class WeightedDigraph
java.lang.Object
ghidra.util.graph.DirectedGraph
ghidra.util.graph.WeightedDigraph
- Direct Known Subclasses:
SimpleWeightedDigraph
Deprecated, for removal: This API element is subject to removal in a future version.
DirectedGraph with edge weights. Weights are assumed to be 0.0 by default.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Default constructorWeightedDigraph(int vertexCapacity, int edgeCapacity) Deprecated, for removal: This API element is subject to removal in a future version.Create weighted directed graph with default edge weight of 0.0 and room for vertexCapicity vertices and edgeCapacity edges.WeightedDigraph(int vertexCapacity, int edgeCapacity, double defaultEdgeWeight) Deprecated, for removal: This API element is subject to removal in a future version.Create a weighted directed graph. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.Add an edge.booleanDeprecated, for removal: This API element is subject to removal in a future version.Add an edge.copy()Deprecated, for removal: This API element is subject to removal in a future version.doubleDeprecated, for removal: This API element is subject to removal in a future version.Returns the weighted degree of this vertex.doubleDeprecated, for removal: This API element is subject to removal in a future version.Gets the defaultEdgeWeight of this graph specified at creation time.Deprecated, for removal: This API element is subject to removal in a future version.Get the edge weights for this graph.doubleDeprecated, for removal: This API element is subject to removal in a future version.Returns the weight of the specified edge.doubleDeprecated, for removal: This API element is subject to removal in a future version.Returns the weighted in-degree of this vertex.voidintersectionWith(DirectedGraph otherGraph) Deprecated, for removal: This API element is subject to removal in a future version.Creates intersection of graphs in place by adding all vertices and edges of other graph to this graph.doubleDeprecated, for removal: This API element is subject to removal in a future version.Returns the weighted out-degree of this vertex.doubleselfDegree(Vertex v) Deprecated, for removal: This API element is subject to removal in a future version.Returns the weighted self-degree of this vertex.booleanDeprecated, for removal: This API element is subject to removal in a future version.Sets the weight of the specified edge.voidunionWith(DirectedGraph otherGraph) Deprecated, for removal: This API element is subject to removal in a future version.Creates union of graphs in place by adding all vertices and edges of other graph to this graph.Methods inherited from class ghidra.util.graph.DirectedGraph
add, areRelatedAs, assignVerticesToStrongComponents, clear, complexityDepth, contains, contains, containsAsSubgraph, copyAll, copyEdge, copyEdgeAttributeValues, copyVertex, copyVertexAttributeValues, descendantsGraph, edgeAttributes, edgeIterator, edges, getAncestors, getChildren, getChildren, getComponentContaining, getComponents, getDescendants, getDescendants, getEdgeArray, getEdgeAttribute, getEdgeProperty, getEdges, getEdges, getEdgeWithKey, getEntryPoints, getIncomingEdges, getLevels, getNeighborhood, getNeighborhood, getOutgoingEdges, getParents, getParents, getReferent, getSinks, getSources, getVertexArray, getVertexAttribute, getVertexProperty, getVertexWithKey, getVertices, getVerticesHavingReferent, getVerticesInContainingComponent, incomingEdges, inducedSubgraph, inValence, join, loopDegree, numEdges, numLoops, numSinks, numSources, numVertices, outgoingEdges, outValence, remove, remove, selfEdges, setEdgeProperty, setVertexProperty, valence, vertexAttributes, vertexIterator, vertices, verticesUnreachableFromSources, verts2referentSet
-
Constructor Details
-
WeightedDigraph
public WeightedDigraph(int vertexCapacity, int edgeCapacity) Deprecated, for removal: This API element is subject to removal in a future version.Create weighted directed graph with default edge weight of 0.0 and room for vertexCapicity vertices and edgeCapacity edges. -
WeightedDigraph
public WeightedDigraph(int vertexCapacity, int edgeCapacity, double defaultEdgeWeight) Deprecated, for removal: This API element is subject to removal in a future version.Create a weighted directed graph. Use the defaultEdgeWeight for any edges whose weights have not been set. -
WeightedDigraph
public WeightedDigraph()Deprecated, for removal: This API element is subject to removal in a future version.Default constructor
-
-
Method Details
-
inDegree
Deprecated, for removal: This API element is subject to removal in a future version.Returns the weighted in-degree of this vertex. The in-degree is the sum of weights of all enges entering this vertex.- Overrides:
inDegreein classDirectedGraph
-
outDegree
Deprecated, for removal: This API element is subject to removal in a future version.Returns the weighted out-degree of this vertex. The out-degree is the sum of weights of all enges entering this vertex.- Overrides:
outDegreein classDirectedGraph
-
selfDegree
Deprecated, for removal: This API element is subject to removal in a future version.Returns the weighted self-degree of this vertex. The self-degree is the sum of weights of all loops at this vertex. -
degree
Deprecated, for removal: This API element is subject to removal in a future version.Returns the weighted degree of this vertex. The degree is the sum of weights of all edges entering and leaving this vertex.- Overrides:
degreein classDirectedGraph
-
getWeight
Deprecated, for removal: This API element is subject to removal in a future version.Returns the weight of the specified edge. -
setWeight
Deprecated, for removal: This API element is subject to removal in a future version.Sets the weight of the specified edge. -
getDefaultEdgeWeight
public double getDefaultEdgeWeight()Deprecated, for removal: This API element is subject to removal in a future version.Gets the defaultEdgeWeight of this graph specified at creation time. -
add
Deprecated, for removal: This API element is subject to removal in a future version.Add an edge. If successful (i.e. that edge does not already appear in the graph), set the weight to the default value- Overrides:
addin classDirectedGraph- Returns:
- true if edge added succesfuly.
-
add
Deprecated, for removal: This API element is subject to removal in a future version.Add an edge. If successful (i.e. that edge does not appear in the graph), then set the weight to the specified value.- Returns:
- true if edge added succesfuly.
-
getEdgeWeights
Deprecated, for removal: This API element is subject to removal in a future version.Get the edge weights for this graph. -
copy
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
copyin classDirectedGraph- Returns:
- A directed graph with the same vertices, edges, and attributes.
-
intersectionWith
Deprecated, for removal: This API element is subject to removal in a future version.Creates intersection of graphs in place by adding all vertices and edges of other graph to this graph. This method used to return a different graph as the intersection but now does not.- Overrides:
intersectionWithin classDirectedGraph
-
unionWith
Deprecated, for removal: This API element is subject to removal in a future version.Creates union of graphs in place by adding all vertices and edges of other graph to this graph. This method used to return a different graph as the union but now does not.- Overrides:
unionWithin classDirectedGraph
-