The grouping operator determines a structural grouping of vertices and edges to condense a graph and thus help to uncover insights about patterns and statistics hidden in the graph.
The graph grouping operator represents every vertex group by a single super vertex in the resulting graph; (super) edges between vertices in the resulting graph represent a group of edges between the vertex group members of the original graph. Grouping is defined by specifying grouping keys for vertices and edges, respectively, similarly as for GROUP BY in SQL.
In addition to vertex properties, grouping is also possible on edge properties, vertex- and edge labels as well as combinations of those.
Consider the following example:
Input graph:
Vertices:
(0, "Person", {city: L})
(1, "Person", {city: L})
(2, "Person", {city: D})
(3, "Person", {city: D})
Edges:{(0,1), (1,0), (1,2), (2,1), (2,3), (3,2)}
Output graph (grouped on vertex property "city"):
Vertices:
(0, "Person", {city: L, count: 2})
(2, "Person", {city: D, count: 2})
Edges:
((0, 0), {count: 2}) // 2 intra-edges in L
((2, 2), {count: 2}) // 2 intra-edges in L
((0, 2), {count: 1}) // 1 inter-edge from L to D
((2, 0), {count: 1}) // 1 inter-edge from D to L
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension Gradoop-Integration from the below update site following our NodePit Product and Node Installation Guide:
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com, follow @NodePit on Twitter or botsin.space/@nodepit on Mastodon.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.