The different modules and methods available in the Ogma API allow developers to create rich interactive applications. Below are some details and interactive examples of features that you can implement in your application to control the interaction and the styling of your data.
The different interaction modules let you control how to display the data for a fast understanding. Ogma provides several layout algorithms to help reveal structural patterns with parameters to optimize the readability of the visualization. You can choose from several layouts (Grid, Concentric, ForceLink, or Hierarchical) and switch from one to another depending on the size of the graph and which information you want to emphasize. For instance, the ForceLink layout is great to identify clusters because it locates nodes in such a way that connected nodes attract each other while disconnected nodes repulse each other.
In some cases, you need the ability to filter the data. Ogma proposes both a selection and filtering modules that allow focussing on specific nodes and edges. They provide methods to interact with nodes and edges depending on a predicate or on the user actions (a mouse selection for instance). This can become handy when you want to visualize and analyze subgraphs of data you have identified.
Developers can also customize the style of the visualization using the Ogma design module. It provides methods to change visual variables based on node or edge properties. For example, you can color nodes based on a category or size them based on a numeric property. This can be particularly helpful to highlight specific information (e.g. important amount or value, highly connected node, etc) or simply display a clearer graph representation.