Skip to content

Commit

Permalink
feat(netwroks): add citations weight
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonestla committed Oct 28, 2024
1 parent d61de4e commit eaf76ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/api/networks/network/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ export default async function networkCreate(
y: attr.y,
label: attr.label,
cluster: attr?.community + 1,
weights: { Weight: attr.weight, Degree: graph.degree(key) },
weights: {
Weight: attr.weight,
Degree: graph.degree(key),
...(attr?.citationsCount !== undefined && { Citations: attr.citationsCount || 0 }),
},
scores: { "Last publication": attr?.maxYear },
page: configGetItemUrl(model, key, attr.label),
...(attr?.publicationsCount !== undefined && { publicationsCount: attr?.publicationsCount }),
Expand Down

0 comments on commit eaf76ce

Please sign in to comment.