const edgeData = [
{
id: '0',
sourceId: '1',
targetId: '0',
ownership: 30
},
{
id: '1',
sourceId: '0',
targetId: '2',
ownership: 60
},
{ id: '2', sourceId: '4', targetId: '0', ownership: 5 },
{ id: '3', sourceId: '3', targetId: '0', ownership: 5 }
]
const edgesSource = graphBuilder.createEdgesSource(
edgeData,
'sourceId',
'targetId',
'id'
)
edgesSource.edgeCreator.createLabelBinding(
(data) => `Owns ${data.ownership}%`
)