Package org.apache.calcite.util.graph
Class AttributedDirectedGraph<V,E extends DefaultEdge> 
java.lang.Object
org.apache.calcite.util.graph.DefaultDirectedGraph<V,E>
 
org.apache.calcite.util.graph.AttributedDirectedGraph<V,E> 
- Type Parameters:
- V- Vertex type
- E- Edge type
- All Implemented Interfaces:
- DirectedGraph<V,- E> 
Directed graph where edges have attributes and allows multiple edges between
 any two vertices provided that their attributes are different.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceFactory for edges that have attributes.Nested classes/interfaces inherited from interface org.apache.calcite.util.graph.DirectedGraphDirectedGraph.EdgeFactory<V,E> 
- 
Constructor SummaryConstructorsConstructorDescriptionAttributedDirectedGraph(@UnknownInitialization AttributedDirectedGraph.AttributedEdgeFactory<V, E> edgeFactory) Creates an attributed graph.
- 
Method SummaryModifier and TypeMethodDescription@Nullable EDeprecated.@Nullable Estatic <V,E extends DefaultEdge> 
 AttributedDirectedGraph<V,E> create(AttributedDirectedGraph.AttributedEdgeFactory<V, E> edgeFactory) @Nullable EReturns the first edge between one vertex to another.Returns all edges between one vertex to another.booleanremoveEdge(V source, V target) Removes all edges from a given vertex to another.Methods inherited from class org.apache.calcite.util.graph.DefaultDirectedGraphaddVertex, create, create, edgeSet, getInwardEdges, getOutwardEdges, getVertex, removeAllVertices, toString, toStringUnordered, vertexSet
- 
Constructor Details- 
AttributedDirectedGraphpublic AttributedDirectedGraph(@UnknownInitialization AttributedDirectedGraph.AttributedEdgeFactory<V, E> edgeFactory) Creates an attributed graph.
 
- 
- 
Method Details- 
createpublic static <V,E extends DefaultEdge> AttributedDirectedGraph<V,E> create(AttributedDirectedGraph.AttributedEdgeFactory<V, E> edgeFactory) 
- 
getEdgeReturns the first edge between one vertex to another.- Specified by:
- getEdgein interface- DirectedGraph<V,- E extends DefaultEdge> 
- Overrides:
- getEdgein class- DefaultDirectedGraph<V,- E extends DefaultEdge> 
 
- 
addEdgeDeprecated.Description copied from interface:DirectedGraphAdds an edge to this graph.- Specified by:
- addEdgein interface- DirectedGraph<V,- E extends DefaultEdge> 
- Overrides:
- addEdgein class- DefaultDirectedGraph<V,- E extends DefaultEdge> 
- Parameters:
- vertex- Source vertex
- targetVertex- Target vertex
- Returns:
- New edge, if added, otherwise null
 
- 
addEdge
- 
getEdgesReturns all edges between one vertex to another.
- 
removeEdgeRemoves all edges from a given vertex to another. Returns whether any were removed.- Specified by:
- removeEdgein interface- DirectedGraph<V,- E extends DefaultEdge> 
- Overrides:
- removeEdgein class- DefaultDirectedGraph<V,- E extends DefaultEdge> 
 
 
- 
addEdge(Object, Object, Object...).