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
andsend_message
. Themessage_direction
property is the identifier for the direction of the message. Thesend_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
, andCustom
which takes aString
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
andObject
. This can be used to represent the source and destination of a message in a Pregel program.