Skip to content

Commit

Permalink
applied formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Joris Kinable committed Jun 15, 2020
1 parent 4822e4f commit 69bc8e1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions jgrapht-core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
exports org.jgrapht.graph.specifics;
exports org.jgrapht.traverse;
exports org.jgrapht.util;

requires transitive org.jheaps;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ final class RankingPathElementList<V, E>
* <ul>
* <li>w/o guard-vertex: $O(knp)$ where $k$ is the max size limit of the list and $np$ is the
* maximum number of vertices in the paths stored in the list</li>
* <li>with guard-vertex: $O(k(m+n)$ where $k$ is the max size limit of the list, $m$ is
* the number of edges of the graph and $n$ is the number of vertices of the graph, $O(m + n)$
* being the complexity of the <code>
* <li>with guard-vertex: $O(k(m+n)$ where $k$ is the max size limit of the list, $m$ is the
* number of edges of the graph and $n$ is the number of vertices of the graph, $O(m + n)$ being
* the complexity of the <code>
* ConnectivityInspector</code> to check whether a path exists towards the guard-vertex</li>
* </ul>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,12 @@ public double getEdgeWeight(E e)
public void setEdgeWeight(E e, double weight)
{
assert e != null;

if (weightFunction != null && !cacheWeights) {
throw new UnsupportedOperationException("Cannot set an edge weight when a weight function is used and caching is disabled");

if (weightFunction != null && !cacheWeights) {
throw new UnsupportedOperationException(
"Cannot set an edge weight when a weight function is used and caching is disabled");
}

this.weights.put(e, weight);

if (this.writeWeightsThrough)
Expand Down
6 changes: 3 additions & 3 deletions jgrapht-demo/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module org.jgrapht.demo
{
exports org.jgrapht.demo;

requires transitive org.jgrapht.core;
requires transitive org.jgrapht.io;
requires transitive org.jgrapht.ext;

requires java.desktop;
}
}
3 changes: 1 addition & 2 deletions jgrapht-ext/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module org.jgrapht.ext
{
exports org.jgrapht.ext;

requires transitive org.jgrapht.core;
requires transitive com.github.vlsi.mxgraph.jgraphx;
}

2 changes: 1 addition & 1 deletion jgrapht-guava/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module org.jgrapht.guava
{
exports org.jgrapht.graph.guava;

requires transitive org.jgrapht.core;
requires transitive com.google.common;
requires transitive org.jheaps;
Expand Down
2 changes: 1 addition & 1 deletion jgrapht-io/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
exports org.jgrapht.nio.lemon;
exports org.jgrapht.nio.matrix;
exports org.jgrapht.nio.tsplib;

requires transitive org.jgrapht.core;
requires transitive org.apache.commons.text;
requires transitive java.xml;
Expand Down

0 comments on commit 69bc8e1

Please sign in to comment.