Hi Tony,
So, your data must be in a format which represent some connection. See this example which I have copied from the website:
elements: {
nodes: [
{
data: { id: 'j', name: 'Jerry', weight: 65, height: 174 }
},
{
data: { id: 'e', name: 'Elaine', weight: 48, height: 160 }
},
{
data: { id: 'k', name: 'Kramer', weight: 75, height: 185 }
}
],
edges: [ //Show connections to whom ... j to e, j to k etc
{ data: { source: 'j', target: 'e' } },
{ data: { source: 'j', target: 'k' } }
],
},the above is static one, to make it dynamic you have to the pull data from database and convert to JSON fromat and add to those arrays 'nodes' and 'edges'.