diff --git a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_1_subgraph.sql b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_1_subgraph.sql index fe24640..fd572f4 100644 --- a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_1_subgraph.sql +++ b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_1_subgraph.sql @@ -1,5 +1,5 @@ with computed as ( - {{ dbt_graph_theory.largest_connected_largest_connected_subgraph( + {{ dbt_graph_theory.largest_connected_subgraph( input=ref('test_largest_connected_subgraph_1_subgraph_data') ) }} ), diff --git a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_2_subgraph_no_edge.sql b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_2_subgraph_no_edge.sql index c0bbd2b..b04efb9 100644 --- a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_2_subgraph_no_edge.sql +++ b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_2_subgraph_no_edge.sql @@ -1,5 +1,5 @@ with computed as ( - {{ dbt_graph_theory.largest_connected_largest_connected_subgraph( + {{ dbt_graph_theory.largest_connected_subgraph( input=ref('test_largest_connected_subgraph_2_subgraph_no_edge_data') ) }} ), diff --git a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_3_subgraph_no_edge.sql b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_3_subgraph_no_edge.sql index fbd8df6..2e46b51 100644 --- a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_3_subgraph_no_edge.sql +++ b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_3_subgraph_no_edge.sql @@ -1,5 +1,5 @@ with computed as ( - {{ dbt_graph_theory.largest_connected_largest_connected_subgraph( + {{ dbt_graph_theory.largest_connected_subgraph( input=ref('test_largest_connected_subgraph_3_subgraph_no_edge_data') ) }} ), diff --git a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_4_subgraph.sql b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_4_subgraph.sql index e9ea959..7f28919 100644 --- a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_4_subgraph.sql +++ b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_4_subgraph.sql @@ -1,5 +1,5 @@ with computed as ( - {{ dbt_graph_theory.largest_connected_largest_connected_subgraph( + {{ dbt_graph_theory.largest_connected_subgraph( input=ref('test_largest_connected_subgraph_4_subgraph_data') ) }} ), diff --git a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_graph_id.sql b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_graph_id.sql index b036c52..81403cd 100644 --- a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_graph_id.sql +++ b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_graph_id.sql @@ -1,5 +1,5 @@ with computed as ( - {{ dbt_graph_theory.largest_connected_largest_connected_subgraph( + {{ dbt_graph_theory.largest_connected_subgraph( input=ref('test_largest_connected_subgraph_graph_id_data'), graph_id='graph_id' ) }} diff --git a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_graph_id_3_subgraph.sql b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_graph_id_3_subgraph.sql index 60fe15f..b3e0de7 100644 --- a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_graph_id_3_subgraph.sql +++ b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_graph_id_3_subgraph.sql @@ -1,5 +1,5 @@ with computed as ( - {{ dbt_graph_theory.largest_connected_largest_connected_subgraph( + {{ dbt_graph_theory.largest_connected_subgraph( input=ref('test_largest_connected_subgraph_graph_id_3_subgraph_data'), graph_id='graph_id' ) }} diff --git a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_no_data.sql b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_no_data.sql index d8c4874..c1813b5 100644 --- a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_no_data.sql +++ b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_no_data.sql @@ -1,5 +1,5 @@ with computed as ( - {{ dbt_graph_theory.largest_connected_largest_connected_subgraph( + {{ dbt_graph_theory.largest_connected_subgraph( input=ref('test_largest_connected_subgraph_no_data_data') ) }} ), diff --git a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_no_data_graph_id.sql b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_no_data_graph_id.sql index 4f90385..c7864fe 100644 --- a/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_no_data_graph_id.sql +++ b/integration_tests/models/test_largest_connected_subgraph/test_largest_connected_subgraph_no_data_graph_id.sql @@ -1,5 +1,5 @@ with computed as ( - {{ dbt_graph_theory.largest_connected_largest_connected_subgraph( + {{ dbt_graph_theory.largest_connected_subgraph( input=ref('test_largest_connected_subgraph_no_data_graph_id_data'), graph_id='graph_id' ) }} diff --git a/macros/largest_connected_subgraph.sql b/macros/largest_connected_subgraph.sql index 624adff..c753055 100644 --- a/macros/largest_connected_subgraph.sql +++ b/macros/largest_connected_subgraph.sql @@ -1,4 +1,4 @@ -{% macro largest_connected_largest_connected_subgraph( +{% macro largest_connected_subgraph( input, edge_id='id', vertex_1='vertex_1', diff --git a/tests/generic/graph_is_connected.sql b/tests/generic/graph_is_connected.sql index 0d05ea2..bf2981e 100644 --- a/tests/generic/graph_is_connected.sql +++ b/tests/generic/graph_is_connected.sql @@ -7,7 +7,7 @@ ) %} with connected_subgraphs as ( - {{ dbt_graph_theory.largest_connected_largest_connected_subgraph( + {{ dbt_graph_theory.largest_connected_subgraph( input=model, edge_id=edge_id, vertex_1=vertex_1,