public abstract class BaseElementGraph extends java.lang.Object implements ElementGraph, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected org.jgrapht.DirectedGraph<FlowElement,Scope> |
graph |
static ElementGraph |
NULL |
Constructor and Description |
---|
BaseElementGraph() |
BaseElementGraph(org.jgrapht.DirectedGraph<FlowElement,Scope> graph) |
Modifier and Type | Method and Description |
---|---|
Scope |
addEdge(FlowElement sourceVertex,
FlowElement targetVertex) |
boolean |
addEdge(FlowElement sourceVertex,
FlowElement targetVertex,
Scope scope) |
boolean |
addHeadVertex(FlowElement flowElement) |
boolean |
addTailVertex(FlowElement flowElement) |
boolean |
addVertex(FlowElement flowElement) |
protected boolean |
allowMultipleExtentEdges() |
ElementGraph |
bindExtents() |
boolean |
containsEdge(FlowElement sourceVertex,
FlowElement targetVertex) |
boolean |
containsEdge(Scope scope) |
boolean |
containsVertex(FlowElement flowElement) |
protected void |
copyFrom(ElementGraph elementGraph) |
java.util.Set<Scope> |
edgeSet() |
java.util.Set<Scope> |
edgesOf(FlowElement vertex) |
boolean |
equals(java.lang.Object object) |
java.util.Set<Scope> |
getAllEdges(FlowElement sourceVertex,
FlowElement targetVertex) |
Scope |
getEdge(FlowElement sourceVertex,
FlowElement targetVertex) |
FlowElement |
getEdgeSource(Scope scope) |
FlowElement |
getEdgeTarget(Scope scope) |
int |
hashCode() |
java.util.Set<Scope> |
incomingEdgesOf(FlowElement vertex) |
int |
inDegreeOf(FlowElement vertex) |
int |
outDegreeOf(FlowElement vertex) |
java.util.Set<Scope> |
outgoingEdgesOf(FlowElement vertex) |
java.util.List<FlowElement> |
predecessorListOf(FlowElement flowElement) |
boolean |
removeAllEdges(java.util.Collection<? extends Scope> edges) |
java.util.Set<Scope> |
removeAllEdges(FlowElement sourceVertex,
FlowElement targetVertex) |
boolean |
removeAllVertices(java.util.Collection<? extends FlowElement> vertices) |
Scope |
removeEdge(FlowElement sourceVertex,
FlowElement targetVertex) |
boolean |
removeEdge(Scope scope) |
boolean |
removeVertex(FlowElement flowElement) |
java.util.List<FlowElement> |
successorListOf(FlowElement flowElement) |
java.util.Set<FlowElement> |
vertexSet()
Returns an immutable identity based Set.
|
java.util.Set<FlowElement> |
vertexSetCopy()
Returns a copy of
ElementGraph.vertexSet() as an identity based Set suitable for modifying. |
void |
writeDOT(java.lang.String filename) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copyElementGraph
public static final ElementGraph NULL
protected org.jgrapht.DirectedGraph<FlowElement,Scope> graph
public BaseElementGraph()
public BaseElementGraph(org.jgrapht.DirectedGraph<FlowElement,Scope> graph)
protected void copyFrom(ElementGraph elementGraph)
public boolean containsEdge(FlowElement sourceVertex, FlowElement targetVertex)
containsEdge
in interface ElementGraph
public boolean removeAllEdges(java.util.Collection<? extends Scope> edges)
removeAllEdges
in interface ElementGraph
public java.util.Set<Scope> removeAllEdges(FlowElement sourceVertex, FlowElement targetVertex)
removeAllEdges
in interface ElementGraph
public boolean removeAllVertices(java.util.Collection<? extends FlowElement> vertices)
removeAllVertices
in interface ElementGraph
public java.util.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
protected boolean allowMultipleExtentEdges()
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 FlowElement getEdgeSource(Scope scope)
getEdgeSource
in interface ElementGraph
public FlowElement getEdgeTarget(Scope scope)
getEdgeTarget
in interface ElementGraph
public boolean containsEdge(Scope scope)
containsEdge
in interface ElementGraph
public boolean containsVertex(FlowElement flowElement)
containsVertex
in interface ElementGraph
public java.util.Set<Scope> edgeSet()
edgeSet
in interface ElementGraph
public java.util.Set<Scope> edgesOf(FlowElement vertex)
edgesOf
in interface ElementGraph
public int inDegreeOf(FlowElement vertex)
inDegreeOf
in interface ElementGraph
public java.util.Set<Scope> incomingEdgesOf(FlowElement vertex)
incomingEdgesOf
in interface ElementGraph
public int outDegreeOf(FlowElement vertex)
outDegreeOf
in interface ElementGraph
public java.util.Set<Scope> outgoingEdgesOf(FlowElement vertex)
outgoingEdgesOf
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 java.util.Set<FlowElement> vertexSet()
ElementGraph
vertexSet
in interface ElementGraph
public java.util.Set<FlowElement> vertexSetCopy()
ElementGraph
ElementGraph.vertexSet()
as an identity based Set suitable for modifying.vertexSetCopy
in interface ElementGraph
public java.util.List<FlowElement> predecessorListOf(FlowElement flowElement)
predecessorListOf
in interface ElementGraph
public java.util.List<FlowElement> successorListOf(FlowElement flowElement)
successorListOf
in interface ElementGraph
public ElementGraph bindExtents()
bindExtents
in interface ElementGraph
public void writeDOT(java.lang.String filename)
writeDOT
in interface ElementGraph
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.