Skip to content

Commit

Permalink
strokeWidth -> weight for network links
Browse files Browse the repository at this point in the history
  • Loading branch information
d-callan committed Jan 10, 2024
1 parent 2d3a05f commit 7eb624f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion schema/library.raml
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ types:
properties:
source: NodeData
target: NodeData
strokeWidth: string
weight: string
color: string
NetworkData:
type: object
Expand Down
2 changes: 1 addition & 1 deletion schema/url/networks.raml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ types:
properties:
source: NodeData
target: NodeData
strokeWidth: string
weight: string
color: string

NetworkData:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected void writeResults(OutputStream out, Map<String, InputStream> dataStrea
LinkData link = new LinkDataImpl();
link.setSource(sourceNode);
link.setTarget(targetNode);
link.setStrokeWidth(String.valueOf(Math.abs(Float.parseFloat(correlationRow.getCorrelationCoef()))));
link.setWeight(String.valueOf(Math.abs(Float.parseFloat(correlationRow.getCorrelationCoef()))));
// Link color is the sign of the correlation
String color = Float.parseFloat(correlationRow.getCorrelationCoef()) < 0 ? "-1" : "1";
link.setColor(color);
Expand Down

0 comments on commit 7eb624f

Please sign in to comment.