Skip to content

Commit

Permalink
calculate topologicalOrder if its null when summary is called (#7353)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnett authored and AlexDBlack committed Mar 27, 2019
1 parent 73b7fc0 commit a092919
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -4195,6 +4195,11 @@ public String summary(InputType... inputTypes) {
maxLength[i] = header[i].length();
}

if(topologicalOrder == null){
GraphIndices indices = calculateIndices();
topologicalOrder = indices.getTopologicalSortOrder();
}

for (int currVertexIdx : topologicalOrder) {

GraphVertex currentVertex = vertices[currVertexIdx];
Expand Down

0 comments on commit a092919

Please sign in to comment.