Module pregel_rs::pregel

source ·
Expand description

This crate provides a Pregel implementation for the GraphFrame data structure.

Structs

  • The Pregel struct represents a Pregel computation with various parameters and expressions.
  • The PregelBuilder struct represents a builder for configuring the Pregel algorithm to be executed on a given graph.
  • This defines a struct SendMessage in Rust. It has two properties: message_direction and send_message. The message_direction property is the identifier for the direction of the message. The send_message property is the function that determines which messages to send from a vertex to its neighbors.

Enums

  • This defines an enumeration type ColumnIdentifier in Rust. It has several variants: VertexId, Subject, Predicate, Object, Edge, Msg, Pregel, and Custom which takes a String parameter. This enum can be used to represent different types of columns in a data structure or database table for it to be used in a Pregel program.
  • This code is defining an enumeration type MessageReceiver in Rust with two variants: Subject and Object. This can be used to represent the source and destination of a message in a Pregel program.