API Docs - v2.0.0¶
Graph¶
maximumClique (Stream Processor)¶
This extension returns the size of the maximum clique of a graph.
Syntax
graph:maximumClique(<STRING> main.vertex, <STRING> refer.vertex, <BOOL> notify.update)
QUERY PARAMETERS
Name | Description | Default Value | Possible Data Types | Optional | Dynamic |
---|---|---|---|---|---|
main.vertex | This is the ID of the main vertex that is used to create a graph. | STRING | No | No | |
refer.vertex | This is the ID of the 'refer vertex' that connects with the main vertex in thegraph. | STRING | No | No | |
notify.update | If this is set to true and if there is any update in the maximum clique of the graph, an alert is sent. |
BOOL | No | No |
Name | Description | Possible Types |
---|---|---|
sizeOfMaximumClick | The size of the maximum clique of the graph. | INT |
Examples EXAMPLE 1
define stream CseEventStream (vertex1 String, vertex2 String); from CseEventStream#graph:maximumClique(vertex1,vertex2,false) select maximumClique insert all events into OutputStream;
This query returns the maximum clique of a given graph.
sizeOfLargestConnectedComponent (Stream Processor)¶
This extension returns the size of the largest connected component of a graph.
Syntax
graph:sizeOfLargestConnectedComponent(<STRING> main.vertex, <STRING> refer.vertex, <BOOL> notify.update)
QUERY PARAMETERS
Name | Description | Default Value | Possible Data Types | Optional | Dynamic |
---|---|---|---|---|---|
main.vertex | This is the ID of the main vertex that is used to create the graph. | STRING | No | No | |
refer.vertex | This is the ID of the 'refer vertex' that connects with the main vertex in the graph. | STRING | No | No | |
notify.update | If this is set to true and if there is any update in the largest connected component of the graph, an alert is sent. |
BOOL | No | No |
Name | Description | Possible Types |
---|---|---|
sizeOfLargestConnectedComponent | The size of the largest connected component of a graph. | LONG |
Examples EXAMPLE 1
define stream CseEventStream (vertex1 String, vertex2 String); from CseEventStream#graph:sizeOfLargestConnectedComponent(vertex1,vertex2,false) select sizeOfLargestConnectedComponent insert all events into OutputStream ;
This query returns the size of the largest connected component of a given graph.