API Docs - v1.0.2¶
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 , an alert is sent if there is any update in the maximum clique of the graph |
BOOL | No | No |
Name | Description | Possible Types |
---|---|---|
sizeOfMaximumClick | 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 an alert is sent if there is any update in the largest connected component of the graph |
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.