private Graphs.FrozenGraph<Convention, DefaultEdge> getPathMap() { if (pathMap == null) { pathMap = Graphs.makeImmutable(conversionGraph); } return pathMap; }
private Graphs.FrozenGraph<Convention, DefaultEdge> getPathMap() { if (pathMap == null) { pathMap = Graphs.makeImmutable(conversionGraph); } return pathMap; }
private <V> List<V> shortestPath(DirectedGraph<V, DefaultEdge> g, V source, V target) { return Graphs.makeImmutable(g).getShortestPath(source, target); }
private <V> List<List<V>> paths(DirectedGraph<V, DefaultEdge> g, V source, V target) { return Graphs.makeImmutable(g).getPaths(source, target); }
private <V> List<List<V>> paths(DirectedGraph<V, DefaultEdge> g, V source, V target) { return Graphs.makeImmutable(g).getPaths(source, target); }
private <V> List<V> shortestPath(DirectedGraph<V, DefaultEdge> g, V source, V target) { return Graphs.makeImmutable(g).getShortestPath(source, target); }
Graphs.makeImmutable(usesGraph); final Set<RelOptTable> queryTablesUsed = RelOptUtil.findTables(rel); final List<RelOptMaterialization> applicableMaterializations =
Graphs.makeImmutable(usesGraph); final Set<RelOptTable> queryTablesUsed = RelOptUtil.findTables(rel); final List<RelOptMaterialization> applicableMaterializations =
graph.addEdge("C", "E"); final Graphs.FrozenGraph<String, DefaultEdge> frozenGraph = Graphs.makeImmutable(graph); assertEquals("[A, B]", frozenGraph.getShortestPath("A", "B").toString()); assertEquals("[[A, B]]", frozenGraph.getPaths("A", "B").toString());
graph.addEdge("C", "E"); final Graphs.FrozenGraph<String, DefaultEdge> frozenGraph = Graphs.makeImmutable(graph); assertEquals("[A, B]", frozenGraph.getShortestPath("A", "B").toString()); assertEquals("[[A, B]]", frozenGraph.getPaths("A", "B").toString());