Port-aware Adjacency Graph Builder Demo
This demo automatically builds a graph from business data using
AdjacencyGraphBuilder.
The business data is stored in JSON format.
By default, a
AdjacencyGraphBuilder connects
the graph elements directly. It does not support further specification of the connection
points (ports). The Adjacency Graph Builder Demo shows such an unmodified
AdjacencyGraphBuilder.
In this sample, the AdjacencyGraphBuilder is modified to support ports. These ports are
created based on the node data. Edges are connected to these specific ports.
Additionally, the demo shows how to update a graph built with AdjacencyGraphBuilder when
the corresponding business data changes. See the source code for details.
Things to Try
-
Use the "Update" button to change the business data and update the graph. Note that
existing elements are kept stable.
-
Inspect the source code to see how the AdjacencyGraphBuilder can be
modified to support ports.