Skip to content

Commit

Permalink
migrate collapsepath
Browse files Browse the repository at this point in the history
  • Loading branch information
lassewesth committed Jul 13, 2024
1 parent dc17542 commit 4ea2f0e
Show file tree
Hide file tree
Showing 46 changed files with 529 additions and 202 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public <RESULT> RESULT articleRank(
configuration,
ArticleRank,
estimation::pageRank,
graph -> algorithms.articleRank(graph, configuration),
(graph, __) -> algorithms.articleRank(graph, configuration),
mutateStep,
resultBuilder
);
Expand All @@ -94,7 +94,7 @@ public <RESULT> RESULT betweennessCentrality(
configuration,
BetweennessCentrality,
() -> estimation.betweennessCentrality(configuration),
graph -> algorithms.betweennessCentrality(graph, configuration),
(graph, __) -> algorithms.betweennessCentrality(graph, configuration),
mutateStep,
resultBuilder
);
Expand All @@ -112,7 +112,7 @@ public <RESULT> RESULT celf(
configuration,
CELF,
() -> estimation.celf(configuration),
graph -> algorithms.celf(graph, configuration),
(graph, __) -> algorithms.celf(graph, configuration),
mutateStep,
resultBuilder
);
Expand All @@ -130,7 +130,7 @@ public <RESULT> RESULT closenessCentrality(
configuration,
ClosenessCentrality,
() -> estimation.closenessCentrality(configuration),
graph -> algorithms.closenessCentrality(graph, configuration),
(graph, __) -> algorithms.closenessCentrality(graph, configuration),
mutateStep,
resultBuilder
);
Expand All @@ -148,7 +148,7 @@ public <RESULT> RESULT degreeCentrality(
configuration,
DegreeCentrality,
() -> estimation.degreeCentrality(configuration),
graph -> algorithms.degreeCentrality(graph, configuration),
(graph, __) -> algorithms.degreeCentrality(graph, configuration),
mutateStep,
resultBuilder
);
Expand All @@ -166,7 +166,7 @@ public <RESULT> RESULT eigenVector(
configuration,
EigenVector,
estimation::pageRank,
graph -> algorithms.eigenVector(graph, configuration),
(graph, __) -> algorithms.eigenVector(graph, configuration),
mutateStep,
resultBuilder
);
Expand All @@ -184,7 +184,7 @@ public <RESULT> RESULT harmonicCentrality(
configuration,
HarmonicCentrality,
estimation::harmonicCentrality,
graph -> algorithms.harmonicCentrality(graph, configuration),
(graph, __) -> algorithms.harmonicCentrality(graph, configuration),
mutateStep,
resultBuilder
);
Expand All @@ -202,7 +202,7 @@ public <RESULT> RESULT pageRank(
configuration,
PageRank,
estimation::pageRank,
graph -> algorithms.pageRank(graph, configuration),
(graph, __) -> algorithms.pageRank(graph, configuration),
mutateStep,
resultBuilder
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class CentralityAlgorithmsStatsModeBusinessFacade {
private final CentralityAlgorithms centralityAlgorithms;
private final AlgorithmProcessingTemplateConvenience algorithmProcessingTemplateConvenience;

public CentralityAlgorithmsStatsModeBusinessFacade(
CentralityAlgorithmsStatsModeBusinessFacade(
CentralityAlgorithmsEstimationModeBusinessFacade estimationFacade,
CentralityAlgorithms centralityAlgorithms,
AlgorithmProcessingTemplateConvenience algorithmProcessingTemplateConvenience
Expand All @@ -66,7 +66,7 @@ public <RESULT> RESULT articleRank(
configuration,
ArticleRank,
estimationFacade::pageRank,
graph -> centralityAlgorithms.articleRank(graph, configuration),
(graph, __) -> centralityAlgorithms.articleRank(graph, configuration),
resultBuilder
);
}
Expand All @@ -81,7 +81,7 @@ public <RESULT> RESULT betweennessCentrality(
configuration,
BetweennessCentrality,
() -> estimationFacade.betweennessCentrality(configuration),
graph -> centralityAlgorithms.betweennessCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.betweennessCentrality(graph, configuration),
resultBuilder
);
}
Expand All @@ -96,7 +96,7 @@ public <RESULT> RESULT celf(
configuration,
CELF,
() -> estimationFacade.celf(configuration),
graph -> centralityAlgorithms.celf(graph, configuration),
(graph, __) -> centralityAlgorithms.celf(graph, configuration),
resultBuilder
);
}
Expand All @@ -111,7 +111,7 @@ public <RESULT> RESULT closenessCentrality(
configuration,
ClosenessCentrality,
() -> estimationFacade.closenessCentrality(configuration),
graph -> centralityAlgorithms.closenessCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.closenessCentrality(graph, configuration),
resultBuilder
);
}
Expand All @@ -126,7 +126,7 @@ public <RESULT> RESULT degreeCentrality(
configuration,
DegreeCentrality,
() -> estimationFacade.degreeCentrality(configuration),
graph -> centralityAlgorithms.degreeCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.degreeCentrality(graph, configuration),
resultBuilder
);
}
Expand All @@ -141,7 +141,7 @@ public <RESULT> RESULT eigenVector(
configuration,
EigenVector,
estimationFacade::pageRank,
graph -> centralityAlgorithms.eigenVector(graph, configuration),
(graph, __) -> centralityAlgorithms.eigenVector(graph, configuration),
resultBuilder
);
}
Expand All @@ -156,7 +156,7 @@ public <RESULT> RESULT harmonicCentrality(
configuration,
HarmonicCentrality,
estimationFacade::harmonicCentrality,
graph -> centralityAlgorithms.harmonicCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.harmonicCentrality(graph, configuration),
resultBuilder
);
}
Expand All @@ -171,7 +171,7 @@ public <RESULT> RESULT pageRank(
configuration,
PageRank,
estimationFacade::pageRank,
graph -> centralityAlgorithms.pageRank(graph, configuration),
(graph, __) -> centralityAlgorithms.pageRank(graph, configuration),
resultBuilder
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class CentralityAlgorithmsStreamModeBusinessFacade {
private final CentralityAlgorithms centralityAlgorithms;
private final AlgorithmProcessingTemplateConvenience algorithmProcessingTemplateConvenience;

public CentralityAlgorithmsStreamModeBusinessFacade(
CentralityAlgorithmsStreamModeBusinessFacade(
CentralityAlgorithmsEstimationModeBusinessFacade estimationFacade,
CentralityAlgorithms centralityAlgorithms,
AlgorithmProcessingTemplateConvenience algorithmProcessingTemplateConvenience
Expand All @@ -67,7 +67,7 @@ public <RESULT> RESULT articleRank(
configuration,
ArticleRank,
estimationFacade::pageRank,
graph -> centralityAlgorithms.articleRank(graph, configuration),
(graph, __) -> centralityAlgorithms.articleRank(graph, configuration),
resultBuilder
);
}
Expand All @@ -82,7 +82,7 @@ public <RESULT> RESULT betweennessCentrality(
configuration,
BetweennessCentrality,
() -> estimationFacade.betweennessCentrality(configuration),
graph -> centralityAlgorithms.betweennessCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.betweennessCentrality(graph, configuration),
resultBuilder
);
}
Expand All @@ -97,7 +97,7 @@ public <RESULT> RESULT celf(
configuration,
CELF,
() -> estimationFacade.celf(configuration),
graph -> centralityAlgorithms.celf(graph, configuration),
(graph, __) -> centralityAlgorithms.celf(graph, configuration),
resultBuilder
);
}
Expand All @@ -112,7 +112,7 @@ public <RESULT> RESULT closenessCentrality(
configuration,
ClosenessCentrality,
() -> estimationFacade.closenessCentrality(configuration),
graph -> centralityAlgorithms.closenessCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.closenessCentrality(graph, configuration),
resultBuilder
);
}
Expand All @@ -127,7 +127,7 @@ public <RESULT> RESULT degreeCentrality(
configuration,
DegreeCentrality,
() -> estimationFacade.degreeCentrality(configuration),
graph -> centralityAlgorithms.degreeCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.degreeCentrality(graph, configuration),
resultBuilder
);
}
Expand All @@ -142,7 +142,7 @@ public <RESULT> RESULT eigenvector(
configuration,
EigenVector,
estimationFacade::pageRank,
graph -> centralityAlgorithms.eigenVector(graph, configuration),
(graph, __) -> centralityAlgorithms.eigenVector(graph, configuration),
resultBuilder
);
}
Expand All @@ -157,7 +157,7 @@ public <RESULT> RESULT harmonicCentrality(
configuration,
HarmonicCentrality,
estimationFacade::harmonicCentrality,
graph -> centralityAlgorithms.harmonicCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.harmonicCentrality(graph, configuration),
resultBuilder
);
}
Expand All @@ -172,7 +172,7 @@ public <RESULT> RESULT pageRank(
configuration,
PageRank,
estimationFacade::pageRank,
graph -> centralityAlgorithms.pageRank(graph, configuration),
(graph, __) -> centralityAlgorithms.pageRank(graph, configuration),
resultBuilder
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public <RESULT> RESULT articleRank(
configuration,
ArticleRank,
estimationFacade::pageRank,
graph -> centralityAlgorithms.articleRank(graph, configuration),
(graph, __) -> centralityAlgorithms.articleRank(graph, configuration),
writeStep,
resultBuilder
);
Expand All @@ -113,7 +113,7 @@ public <RESULT> RESULT betweennessCentrality(
configuration,
BetweennessCentrality,
() -> estimationFacade.betweennessCentrality(configuration),
graph -> centralityAlgorithms.betweennessCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.betweennessCentrality(graph, configuration),
writeStep,
resultBuilder
);
Expand All @@ -131,7 +131,7 @@ public <CONFIGURATION extends InfluenceMaximizationWriteConfig, RESULT> RESULT c
configuration,
CELF,
() -> estimationFacade.celf(configuration),
graph -> centralityAlgorithms.celf(graph, configuration),
(graph, __) -> centralityAlgorithms.celf(graph, configuration),
writeStep,
resultBuilder
);
Expand All @@ -149,7 +149,7 @@ public <RESULT> RESULT closenessCentrality(
configuration,
ClosenessCentrality,
() -> estimationFacade.closenessCentrality(configuration),
graph -> centralityAlgorithms.closenessCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.closenessCentrality(graph, configuration),
writeStep,
resultBuilder
);
Expand All @@ -167,7 +167,7 @@ public <RESULT> RESULT degreeCentrality(
configuration,
DegreeCentrality,
() -> estimationFacade.degreeCentrality(configuration),
graph -> centralityAlgorithms.degreeCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.degreeCentrality(graph, configuration),
writeStep,
resultBuilder
);
Expand All @@ -185,7 +185,7 @@ public <RESULT> RESULT eigenvector(
configuration,
EigenVector,
estimationFacade::pageRank,
graph -> centralityAlgorithms.eigenVector(graph, configuration),
(graph, __) -> centralityAlgorithms.eigenVector(graph, configuration),
writeStep,
resultBuilder
);
Expand All @@ -203,7 +203,7 @@ public <CONFIGURATION extends HarmonicCentralityWriteConfig, RESULT> RESULT harm
configuration,
HarmonicCentrality,
estimationFacade::harmonicCentrality,
graph -> centralityAlgorithms.harmonicCentrality(graph, configuration),
(graph, __) -> centralityAlgorithms.harmonicCentrality(graph, configuration),
writeStep,
resultBuilder
);
Expand All @@ -221,7 +221,7 @@ public <RESULT> RESULT pageRank(
configuration,
PageRank,
estimationFacade::pageRank,
graph -> centralityAlgorithms.pageRank(graph, configuration),
(graph, __) -> centralityAlgorithms.pageRank(graph, configuration),
writeStep,
resultBuilder
);
Expand Down
Loading

0 comments on commit 4ea2f0e

Please sign in to comment.