Skip to content

Commit

Permalink
Merge pull request #101 from rwth-acis/centralityHotfix
Browse files Browse the repository at this point in the history
hotfix for centralityCreationLog constructor
  • Loading branch information
beka-zhvania authored Oct 18, 2022
2 parents adf82ea + 696db71 commit e6007b7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ protected CentralityCreationLog() {
*/
public CentralityCreationLog(CentralityType centralityType, CentralityCreationType creationType, Map<String, String> parameters, Set<GraphType> compatibleGraphTypes) {
if(centralityType != null) {
if(creationTypeId == CentralityCreationType.CENTRALITY_MEASURE.getId())
this.centralityTypeId = ((CentralityMeasureType)centralityType).getId();
else if(creationTypeId == CentralityCreationType.SIMULATION.getId()) {
if(creationType.getId() == CentralityCreationType.CENTRALITY_MEASURE.getId()) {
this.centralityTypeId = ((CentralityMeasureType) centralityType).getId();
}
else if(creationType.getId() == CentralityCreationType.SIMULATION.getId()) {
this.centralityTypeId = ((CentralitySimulationType)centralityType).getId();
}
else {
Expand Down

0 comments on commit e6007b7

Please sign in to comment.