Package org.apache.calcite.util.graph
Class DefaultDirectedGraph<V,E extends DefaultEdge> 
java.lang.Object
org.apache.calcite.util.graph.DefaultDirectedGraph<V,E> 
- Type Parameters:
- V- Vertex type
- E- Edge type
- All Implemented Interfaces:
- DirectedGraph<V,- E> 
- Direct Known Subclasses:
- AttributedDirectedGraph
public class DefaultDirectedGraph<V,E extends DefaultEdge> 
extends Object
implements DirectedGraph<V,E> 
Default implementation of 
DirectedGraph.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.calcite.util.graph.DirectedGraphDirectedGraph.EdgeFactory<V,E> 
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultDirectedGraph(@UnknownInitialization DirectedGraph.EdgeFactory<V, E> edgeFactory) Creates a graph.
- 
Method SummaryModifier and TypeMethodDescription@Nullable EAdds an edge to this graph.booleanAdds a vertex to this graph.static <V> DefaultDirectedGraph<V,DefaultEdge> create()static <V,E extends DefaultEdge> 
 DefaultDirectedGraph<V,E> create(DirectedGraph.EdgeFactory<V, E> edgeFactory) edgeSet()@Nullable EgetInwardEdges(V target) getOutwardEdges(V source) voidremoveAllVertices(Collection<V> collection) Removes from this graph all vertices that are incollection, and the edges into and out of those vertices.booleanremoveEdge(V source, V target) toString()Deprecated.
- 
Constructor Details- 
DefaultDirectedGraphCreates a graph.
 
- 
- 
Method Details- 
create
- 
createpublic static <V,E extends DefaultEdge> DefaultDirectedGraph<V,E> create(DirectedGraph.EdgeFactory<V, E> edgeFactory) 
- 
toStringUnorderedDeprecated.
- 
toString
- 
addVertexDescription copied from interface:DirectedGraphAdds a vertex to this graph.- Specified by:
- addVertexin interface- DirectedGraph<V,- E extends DefaultEdge> 
- Parameters:
- vertex- Vertex
- Returns:
- Whether vertex was added
 
- 
getVertex
- 
edgeSet- Specified by:
- edgeSetin interface- DirectedGraph<V,- E extends DefaultEdge> 
 
- 
addEdgeDescription copied from interface:DirectedGraphAdds an edge to this graph.- Specified by:
- addEdgein interface- DirectedGraph<V,- E extends DefaultEdge> 
- Parameters:
- vertex- Source vertex
- targetVertex- Target vertex
- Returns:
- New edge, if added, otherwise null
 
- 
getEdge- Specified by:
- getEdgein interface- DirectedGraph<V,- E extends DefaultEdge> 
 
- 
removeEdge- Specified by:
- removeEdgein interface- DirectedGraph<V,- E extends DefaultEdge> 
 
- 
vertexSet- Specified by:
- vertexSetin interface- DirectedGraph<V,- E extends DefaultEdge> 
 
- 
removeAllVerticesDescription copied from interface:DirectedGraphRemoves from this graph all vertices that are incollection, and the edges into and out of those vertices.- Specified by:
- removeAllVerticesin interface- DirectedGraph<V,- E extends DefaultEdge> 
 
- 
getOutwardEdges- Specified by:
- getOutwardEdgesin interface- DirectedGraph<V,- E extends DefaultEdge> 
 
- 
getInwardEdges- Specified by:
- getInwardEdgesin interface- DirectedGraph<V,- E extends DefaultEdge> 
 
 
-