Skip to content

Commit

Permalink
New kit
Browse files Browse the repository at this point in the history
  • Loading branch information
pbloem committed Sep 25, 2016
1 parent b87c1c5 commit 9bf7723
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
24 changes: 17 additions & 7 deletions nodes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
<directory>src/main/resources</directory>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
<executions>
Expand All @@ -39,9 +38,20 @@
</execution>
</executions>
</plugin>

</plugins>
</pluginManagement>

<plugin> <!-- Create sources.jar -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
Expand Down Expand Up @@ -102,7 +112,7 @@
<dependency>
<groupId>com.github.pbloem</groupId>
<artifactId>kit</artifactId>
<version>v0.1.10</version>
<version>v0.1.11</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>peterbloem.nl</groupId> -->
Expand Down
6 changes: 3 additions & 3 deletions nodes/src/main/java/org/nodes/models/EdgeListModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static double undirected(List<Integer> degrees, DegreeSequenceModel.Prior
break;
case COMPLETE:
bits += Functions.prefix(degrees.size());
bits += Functions.prefix(Functions.max(degrees));
bits += Functions.prefix((long)Functions.max(degrees));
bits += OnlineModel.storeIntegers(degrees);
break;
}
Expand Down Expand Up @@ -115,10 +115,10 @@ public static double directed(List<Integer> degreesIn, List<Integer> degreesOut,
case COMPLETE:
bits += Functions.prefix(degreesIn.size());

bits += Functions.prefix(Functions.max(degreesIn));
bits += Functions.prefix((long)Functions.max(degreesIn));
bits += OnlineModel.storeIntegers(degreesIn);

bits += Functions.prefix(Functions.max(degreesOut));
bits += Functions.prefix((long)Functions.max(degreesOut));
bits += OnlineModel.storeIntegers(degreesOut);
break;
}
Expand Down

0 comments on commit 9bf7723

Please sign in to comment.