org.apache.spark.graphx.PartitionStrategy
Returns the partition number for a given edge.
Returns the partition number for a given edge.
Assigns edges to partitions by hashing the source and destination vertex IDs in a canonical direction, resulting in a random vertex cut that colocates all edges between two vertices, regardless of direction.