Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxxoo committed Apr 28, 2021
1 parent 088d2a8 commit 04f3dd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ public static class Step {
public Step(HugeGraph g, Directions direction, List<String> labels,
long degree, long skipDegree, int top, int capacity) {
E.checkArgument(top > 0 && top <= MAX_TOP,
"The top of each layer muse be in (0, %s]", MAX_TOP);
"The top of each layer must be in (0, %s]",
MAX_TOP);
E.checkArgument(capacity > 0,
"The capacity of each layer must be > 0, " +
"but got %s", capacity);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private double edgeWeight(HugeEdge edge) {
!edge.property(this.weight).isPresent()) {
edgeWeight = 1.0;
} else {
edgeWeight = toDouble(edge.value(this.weight));
edgeWeight = this.toDouble(edge.value(this.weight));
}
return edgeWeight;
}
Expand Down

0 comments on commit 04f3dd9

Please sign in to comment.