API Docs - v1.0.0¶
Graph¶
sizeOfLargestConnectedComponent (Stream Processor)¶
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 | This will give an alert if there is any update in the largest connectedcomponent of the graph | BOOL | No | No |
Name | Description | Possible Types |
---|---|---|
sizeOfLargestConnectedComponent | 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 ;
Example for LargestConnectedComponent
This will return size of the largest connected component of a given graph.
maximumClique (Stream Processor)¶
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 | It will give an alert if there is any update in the maximum clique of the graph | BOOL | No | No |
Name | Description | Possible Types |
---|---|---|
sizeOfMaximumClick | Size of the maximum click 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 ;
Example for MaximumClique
This will return the maximum clique of a given graph.