Skip to content

Commit 5d62b74

Browse files
committed
Math round, penwidth, and
1 parent 6ecdf07 commit 5d62b74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/edu/uic/bitslab/callgraph/GetBest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void run() {
188188
exporter.setVertexAttributeProvider(
189189
(v) -> {
190190
Map<String, Attribute> map = new LinkedHashMap<>();
191-
map.put("label", DefaultAttribute.createAttribute(score.get(v).toString() + " - " + dotFormat(v.toString())));
191+
map.put("label", DefaultAttribute.createAttribute((Math.round(score.get(v) * 100) / 100.0d) + " - " + dotFormat(v.toString())));
192192
map.put("style", DefaultAttribute.createAttribute("filled"));
193193
map.put("fillcolor", DefaultAttribute.createAttribute(v.getColor()));
194194
return map;
@@ -204,7 +204,7 @@ public void run() {
204204
int pathNumber = pathSet.get(0);
205205
map.put("color", DefaultAttribute.createAttribute(edgeStringColor[pathNumber]));
206206

207-
map.put("penwidth", DefaultAttribute.createAttribute(2.0));
207+
map.put("penwidth", DefaultAttribute.createAttribute(3.0));
208208

209209
String stringPathNumbers = pathSet.stream().map(String::valueOf).collect(Collectors.joining("/"));
210210
map.put("label", DefaultAttribute.createAttribute("P" + stringPathNumbers));

0 commit comments

Comments
 (0)