public class DecoratedElementGraph extends Object implements ElementGraph
Constructor and Description |
---|
DecoratedElementGraph(ElementGraph decorated) |
public DecoratedElementGraph(ElementGraph decorated)
public ElementGraph getDecorated()
public ElementGraph copyElementGraph()
copyElementGraph
in interface ElementGraph
public void writeDOT(String filename)
writeDOT
in interface ElementGraph
public int inDegreeOf(FlowElement vertex)
inDegreeOf
in interface ElementGraph
public Set<Scope> incomingEdgesOf(FlowElement vertex)
incomingEdgesOf
in interface ElementGraph
public int outDegreeOf(FlowElement vertex)
outDegreeOf
in interface ElementGraph
public Set<Scope> outgoingEdgesOf(FlowElement vertex)
outgoingEdgesOf
in interface ElementGraph
public List<FlowElement> predecessorListOf(FlowElement flowElement)
predecessorListOf
in interface ElementGraph
public List<FlowElement> successorListOf(FlowElement flowElement)
successorListOf
in interface ElementGraph
public Set<Scope> getAllEdges(FlowElement sourceVertex, FlowElement targetVertex)
getAllEdges
in interface ElementGraph
public Scope getEdge(FlowElement sourceVertex, FlowElement targetVertex)
getEdge
in interface ElementGraph
public Scope addEdge(FlowElement sourceVertex, FlowElement targetVertex)
addEdge
in interface ElementGraph
public boolean addEdge(FlowElement sourceVertex, FlowElement targetVertex, Scope scope)
addEdge
in interface ElementGraph
public boolean addHeadVertex(FlowElement flowElement)
addHeadVertex
in interface ElementGraph
public boolean addTailVertex(FlowElement flowElement)
addTailVertex
in interface ElementGraph
public boolean addVertex(FlowElement flowElement)
addVertex
in interface ElementGraph
public boolean containsEdge(FlowElement sourceVertex, FlowElement targetVertex)
containsEdge
in interface ElementGraph
public boolean containsEdge(Scope scope)
containsEdge
in interface ElementGraph
public boolean containsVertex(FlowElement flowElement)
containsVertex
in interface ElementGraph
public Set<Scope> edgeSet()
edgeSet
in interface ElementGraph
public Set<Scope> edgesOf(FlowElement vertex)
edgesOf
in interface ElementGraph
public boolean removeAllEdges(Collection<? extends Scope> edges)
removeAllEdges
in interface ElementGraph
public Set<Scope> removeAllEdges(FlowElement sourceVertex, FlowElement targetVertex)
removeAllEdges
in interface ElementGraph
public boolean removeAllVertices(Collection<? extends FlowElement> vertices)
removeAllVertices
in interface ElementGraph
public Scope removeEdge(FlowElement sourceVertex, FlowElement targetVertex)
removeEdge
in interface ElementGraph
public boolean removeEdge(Scope scope)
removeEdge
in interface ElementGraph
public boolean removeVertex(FlowElement flowElement)
removeVertex
in interface ElementGraph
public Set<FlowElement> vertexSet()
ElementGraph
vertexSet
in interface ElementGraph
public Set<FlowElement> vertexSetCopy()
ElementGraph
ElementGraph.vertexSet()
as an identity based Set suitable for modifying.vertexSetCopy
in interface ElementGraph
public FlowElement getEdgeSource(Scope scope)
getEdgeSource
in interface ElementGraph
public FlowElement getEdgeTarget(Scope scope)
getEdgeTarget
in interface ElementGraph
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.