There are two kinds of execution result of Ultipa graph algorithms: Algorithm Results and Algorithm Statistics. Some algorithms can return both whereas others only return one of them. The type of result to be returned is determined by the specified execution method.
Algorithm Results
Algorithm results is a data stream of multiple columns. For instance, there are two columns contained in the results of the Degree algorithm, which are the unique identifiers of nodes (column name is _id
or _uuid
) and the calculated degrees of nodes (column name is degree
). Example as below:
_uuid | degree |
---|---|
1 | 3 |
2 | 3 |
3 | 5 |
4 | 2 |
5 | 2 |
Algorithm Statistics
Algorithm statistics is a data row of one or multiple KVs (Key-Value). For instance, the statistics of the Louvain algorithm contains two KVs, the two keys are the community count (community_count
) and modularity of the community (modularity
). Example as below:
community_count | modularity |
---|---|
3 | 0.43 |