Skip to content
Snippets Groups Projects
Commit 9ce7fed0 authored by Leonardo's avatar Leonardo
Browse files

fix(vis): fix new link name in link prediction structure

parent d3cafcc5
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ export function processLinkPrediction(ml: ML, graph: GraphType): GraphType { ...@@ -11,6 +11,7 @@ export function processLinkPrediction(ml: ML, graph: GraphType): GraphType {
if (allNodeIds.has(link.from) && allNodeIds.has(link.to)) { if (allNodeIds.has(link.from) && allNodeIds.has(link.to)) {
const toAdd: LinkType = { const toAdd: LinkType = {
id: link.from + ':LP:' + link.to, // TODO: this only supports one link between two nodes id: link.from + ':LP:' + link.to, // TODO: this only supports one link between two nodes
name: 'Link Prediction',
source: link.from, source: link.from,
target: link.to, target: link.to,
value: link.attributes.jaccard_coefficient as number, value: link.attributes.jaccard_coefficient as number,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment