Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vertex program api spec #13

Open
wweic opened this issue Mar 26, 2013 · 4 comments
Open

vertex program api spec #13

wweic opened this issue Mar 26, 2013 · 4 comments

Comments

@wweic
Copy link
Contributor

wweic commented Mar 26, 2013

Here is discussion thread of IAlgorithm API.

Following are confirmed API:

  1. gather_type gather(icontext_type& context, const vertex_type& vertex, edge_type& edge)
  2. void apply(icontext_type& context, vertex_type& vertex, const gather_type& total)
  3. void scatter(icontext_type& context, const vertex_type& vertex, edge_type& edge)
  4. void beforeIteration(icontext_type& context, const vertex_type& vertex)
  5. void afterIteration(icontext_type& context, const vertex_type& vertex)
@thinxer
Copy link
Contributor

thinxer commented Mar 27, 2013

Aggregator has been added too.

On Tue, Mar 26, 2013 at 6:48 PM, Wei Chen [email protected] wrote:

Here is discussion thread of vertex program API.

Following are confirmed API:

  1. gather_type gather(icontext_type& context, const vertex_type& vertex,
    edge_type& edge)
  2. void apply(icontext_type& context, vertex_type& vertex, const
    gather_type& total)
  3. void scatter(icontext_type& context, const vertex_type& vertex,
    edge_type& edge)


Reply to this email directly or view it on GitHubhttps://github.com//issues/13
.

@wweic
Copy link
Contributor Author

wweic commented Mar 27, 2013

As I said "Now the aggregator will not be cleared in any iteration". I think user can make their own choice in beforeIteration and afterIteration.

@thinxer
Copy link
Contributor

thinxer commented Mar 27, 2013

Sorry I added the comment by email and hadn't noticed that you have updated the issue.

@wweic
Copy link
Contributor Author

wweic commented Apr 11, 2013

@neozhangthe1 , we need a before_iteration and after_iteration interface, these apis will update vertex program's status before iteration. Use cases like if I want to count active node in a graph, I must check the activated flag of every vertex, which can be initialized in before_iteration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants