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

ASF GitHub Bot commented on FLINK-2150:
---------------------------------------

Github user andralungu commented on the pull request:

    https://github.com/apache/flink/pull/801#issuecomment-110647258
  
    Hi @tillrohrmann ,
    
    For the log2 part, you mean something like this: ceil(log2(x)) = 32 - 
numberOfLeadingZeros(x - 1)? 32 because it's int, in this case it should be 
64... 
    I started with gelly because I thought it would be nice to first break 
stuff in my own part of the woods :). I am in favour of generalising. What 
should we change for that? 


> Add a library method that assigns unique Long values to vertices
> ----------------------------------------------------------------
>
>                 Key: FLINK-2150
>                 URL: https://issues.apache.org/jira/browse/FLINK-2150
>             Project: Flink
>          Issue Type: New Feature
>          Components: Gelly
>            Reporter: Vasia Kalavri
>            Assignee: Andra Lungu
>            Priority: Minor
>              Labels: starter
>
> In some graph algorithms, it is required to initialize the vertex values with 
> unique values (e.g. label propagation).
> This issue proposes adding a Gelly library method that receives an input 
> graph and initializes its vertex values with unique Long values.
> This method can then also be used to improve the MusicProfiles example.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to