hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Jungblut (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HAMA-658) Add random graph generator
Date Wed, 24 Oct 2012 11:10:12 GMT

    [ https://issues.apache.org/jira/browse/HAMA-658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483135#comment-13483135
] 

Thomas Jungblut commented on HAMA-658:
--------------------------------------

For directed graphs with weights:
https://github.com/thomasjungblut/thomasjungblut-common/blob/master/src/de/jungblut/bsp/RandomGraphGenerator.java

If you want unweighted graphs switch the line:

    s += Long.toString(rowId) + ":" + rand.nextInt(100) + "\t";

with:

    s += Long.toString(rowId) + "\t";

And to make it more efficient use a stringbuilder.

Anyone can just copy and paste it to a patch, the file above is under Apache2, so no problem.



                
> Add random graph generator
> --------------------------
>
>                 Key: HAMA-658
>                 URL: https://issues.apache.org/jira/browse/HAMA-658
>             Project: Hama
>          Issue Type: New Feature
>          Components: examples, graph
>            Reporter: Edward J. Yoon
>             Fix For: 0.7.0
>
>
> It would be nice if we have random graph generator so that users can easily test the
graph examples.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message