Turi Create  4.0
connected_component.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef TURI_UNITY_CONNECTED_COMPONENT
7 #define TURI_UNITY_CONNECTED_COMPONENT
8 #include <model_server/lib/toolkit_function_specification.hpp>
9 
10 namespace turi {
11 namespace connected_component {
12 /**
13  * Obtains the registration for the Connected Component Toolkit.
14  *
15  * Computes Weakly connected components on the graph
16  *
17  * <b> Toolkit Name: connected_component </b>
18  *
19  * Accepted Parameters: None
20  *
21  * Returned Parameters:
22  * \li \b training_time (flexible_type: float). The training time of the algorithm in seconds
23  * excluding all other preprocessing stages.
24  *
25  * \li \b num_of_components (flexible_type: int) The number of components of the graph.
26  *
27  * \li \b __graph__ (unity_graph). The graph object with the field "component_id",
28  * The component_id field (integer) on each vertex contains the component ID
29  * of the vertex. All vertices with the same component ID are connected.
30  * component IDs are not sequential and can be arbitrary integers.
31  */
32 std::vector<toolkit_function_specification> get_toolkit_function_registration() ;
33 
34 } // namespace connected_component
35 } // namespace turi
36 #endif