You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2015/04/29 12:21:06 UTC
[jira] [Commented] (HAMA-894) Implement K-core algorithm
[ https://issues.apache.org/jira/browse/HAMA-894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519092#comment-14519092 ]
Edward J. Yoon commented on HAMA-894:
-------------------------------------
I found one minor bug in KCoreVertex. To write integer type core, writeDouble() method was used. I'm fixing directly.
{code}
Index: src/main/java/org/apache/hama/ml/kcore/KCoreVertex.java
===================================================================
--- src/main/java/org/apache/hama/ml/kcore/KCoreVertex.java (revision 1676688)
+++ src/main/java/org/apache/hama/ml/kcore/KCoreVertex.java (working copy)
@@ -101,8 +101,7 @@
}
@Override
- public void readFields(DataInput in) throws IOException {
- super.readFields(in);
+ public void readState(DataInput in) throws IOException {
core = in.readInt();
changed = in.readBoolean();
@@ -118,9 +117,8 @@
}
@Override
- public void write(DataOutput out) throws IOException {
- super.write(out);
- out.writeDouble(core);
+ public void writeState(DataOutput out) throws IOException {
+ out.writeInt(core);
out.writeBoolean(changed);
if (this.estimates == null) {
{code}
> Implement K-core algorithm
> --------------------------
>
> Key: HAMA-894
> URL: https://issues.apache.org/jira/browse/HAMA-894
> Project: Hama
> Issue Type: New Feature
> Components: graph, machine learning
> Reporter: Edward J. Yoon
> Assignee: Jaegwon Seo
> Labels: gsoc2014
> Fix For: 0.7.0
>
> Attachments: kcore.patch
>
>
> Implement the k-core algorithm (using Hama Graph API), which can be used for analyzing large scale complex networks.
> - http://en.wikipedia.org/wiki/K-core#k-Cores
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)