-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Feature] output custom write #302
Comments
🤖 你好 @diaohancai, 很高兴再次看到你的贡献。 Based on your feature request, you want to modify the output computation results so that only specific vertices (such as Currently, the public void writeVertex(Vertex vertex) {
if (vertex.id().equals(targetId)) {
// Write the vertex to the output
}
} Similarly, in the public void write(Vertex vertex) {
if (vertex.id().equals(targetId)) {
// Write the vertex to the output
}
} Please note that This is a simple solution and may need to be adjusted based on your specific requirements and the actual implementation of the For more information, you can refer to the following sources: I hope this helps! If you have any further questions or need more clarification, feel free to ask. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Feature Description (功能描述)
Currently, all vertices output computation results.
But some scenarios do not require all vertices to output computation results.
Such as
Single Source Shortest Path
algorithm, whentargetId = "abc"
, then just output the computation result with the vertex idabc
, no need to output results for other vertices.The text was updated successfully, but these errors were encountered: