Overview
Display the connectivity/dependency/relationships between multiple objects in the graph representation.
Some example use cases:
Key Features & Functionality
Q1. Can we get the dynamic data from external DB's and build network diagram? How to map the nodes and edges respectively for dynamic values?
Ans: Yes. When we have accurate node details and their corresponding details in DB tables,
Please find the code snippet at the bottom.
{ a!localVariables( //Use the expression for preparing the dictionary of nodes in case of database retrieval local!nodes:{ {id: 1,label: "Node 1", hidden: false}, {id: 2,label: "Node 2", hidden: false}, {id: 3,label: "Node 3", hidden: false}, {id: 4,label: "Node 4", hidden: false}, {id: 5,label: "Node 5", hidden: false}, {id: 6,label: "Node 6", hidden: false} }, //Use the expression for preparing the dictionary of edges in case of database retrieval local!edges:{ { from: 1, to: 2 }, { from: 1, to: 3 }, { from: 1, to: 4 }, { from: 4, to: 5 }, { from: 4, to: 6 } }, networkGraphField( label: "Network Graph Field", labelPosition: "ABOVE", validations: {}, height: "SHORT", nodes: local!nodes, edges: local!edges, nodeOptions: {}, edgeOptions: { arrows: "to" }, groups: {}, layout: { hierarchical: { direction: "UD", sortMethod: "directed" } }, interaction: {}, physics: { barnesHut: { springLength: 200 } }, showBorder: true ) ) }
Q2. I have a requirement, to show the drill-down level of each node as a separate interface. Is it possible to implement the same by using Network-graph-component Plugin?
Ans: No. The existing networkGraphField component does not have link facility. If we need we need to customize the component to enable the link facility.
Q3. Can we show/hide the nodes depends on the requirements? Any examples please share.
Ans: Yes. We can hide the nodes by using the hidden parameter of the Node. Following code snippet demonstrate this requirement.
Note: When we hide node, the node will be disappeared. Its associated edges will be removed from it connected nodes.
… nodes: {{id: 1, label: "Node 1", hidden:true }} …
Image with fully connected nodes.
{ a!localVariables( /*Use the expression for preparing the dictionary of nodes in case of database retrieval*/ local!nodes:{ {id: 1,label: "Node 1", hidden: false}, {id: 2,label: "Node 2", hidden: false}, {id: 3,label: "Node 3", hidden: false}, {id: 4,label: "Node 4", hidden: false}, {id: 5,label: "Node 5", hidden: false}, {id: 6,label: "Node 6", hidden: false} }, /*Use the expression for preparing the dictionary of edges in case of database retrieval*/ local!edges:{ { from: 1, to: 2 }, { from: 1, to: 3 }, { from: 1, to: 4 }, { from: 4, to: 5 }, { from: 4, to: 6 } }, networkGraphField( label: "Network Graph Field", labelPosition: "ABOVE", validations: {}, height: "SHORT", nodes: local!nodes, edges: local!edges, nodeOptions: {}, edgeOptions: { arrows: "to" }, groups: {}, layout: { hierarchical: { direction: "UD", sortMethod: "directed" } }, interaction: {}, physics: { barnesHut: { springLength: 200 } }, showBorder: true ) ) }
Image with Node 4 hidden
{ a!localVariables( /*Use the expression for preparing the dictionary of nodes in case of database retrieval*/ local!nodes:{ {id: 1,label: "Node 1", hidden: false}, {id: 2,label: "Node 2", hidden: false}, {id: 3,label: "Node 3", hidden: false}, {id: 4,label: "Node 4", hidden: true}, {id: 5,label: "Node 5", hidden: false}, {id: 6,label: "Node 6", hidden: false} }, /*Use the expression for preparing the dictionary of edges in case of database retrieval*/ local!edges:{ { from: 1, to: 2 }, { from: 1, to: 3 }, { from: 1, to: 4 }, { from: 4, to: 5 }, { from: 4, to: 6 } }, networkGraphField( label: "Network Graph Field", labelPosition: "ABOVE", validations: {}, height: "SHORT", nodes: local!nodes, edges: local!edges, nodeOptions: {}, edgeOptions: { arrows: "to" }, groups: {}, layout: { hierarchical: { direction: "UD", sortMethod: "directed" } }, interaction: {}, physics: { barnesHut: { springLength: 200 } }, showBorder: true ) ) }
Hi Appcino @Appcino
Expecting a reply at the earliest.
Any reference links and example implementation would be appreciated.
Hi ,
I have used fraud ring network graph plugin for one scenario as below,
How can I get this network graph in a pdf form? Also, what should be the Contents field?
Hi Seifeddine,Please find below the step-by-step installation instructions:1) Download the Network Graph plugin zip file from this AppMarket page using the "Download" button2) Extract the downloaded zip file3) Once you extract - you should find two zip files - A)"Network Graph Plugin Component_signed.zip" & B) "Network Graph Sample Application.zip"4) "A" file is the main plugin component file which needs to be deployed on the server plugins where rest of the plugins are generally deployed (/data/appian/_admin/plugins)5) Once the plugin is successfully installed, the function name should be available as usual on Appian interfaces. The name of the custom function is "networkGraphField."6) FYI - "B" is the sample application package that we have provided as part of this plugin, which, after you install the plugin component, you can deploy this as any other Appian application on your environment - this application has some sample interface created using this plugin.Thanks,
hello , how can I install the plugin step by step ? thanks
Hello, the plugin does not need an active connection and you can run it on premise.
Hello. Does the plugin need an active internet connection or is it possible to run in on premise? Thanks.