Minimum Spanning Forest
Given an undirected graph with one or more connected components, a minimum spanning forest is a set of minimum spanning trees, one for each component.
Notes
This is an implementation of the algorithm in section 6.2 of Qin et al. 2014: Scalable Big Graph Processing in MapReduce
Specifications
tg_msf (SET<STRING> v_type, SET<STRING> e_type, STRING wt_attr, STRING wt_type,
BOOL print_accum = TRUE, STRING result_attr = "", STRING file_path = "")
Parameters
Parameter | Description | Default |
---|---|---|
|
Names of vertex types to use |
(empty set of strings) |
|
Names of edge types to use |
(empty set of strings) |
|
Name of edge weight attribute |
(empty string) |
|
Data type of edge weight attribute (must be |
(empty string) |
|
If True, output JSON to standard output |
True |
|
If not empty, store result values ( |
(empty string) |
|
If not empty, write output to this file. |
(empty string) |
Example
Refer to the example for the Minimum Spanning Tree algorithm. This graph has three components. The MSF algorithm finds an MST for each of the three components.