From 705b7a5a32793f7ed8a24b8b35afe3f9d49348be Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 29 Apr 2025 07:19:10 +0200 Subject: tidy whitespace --- .../com/example/portfolio3/Edge.java | 70 +++++++++++++--------- 1 file changed, 41 insertions(+), 29 deletions(-) (limited to 'src/com.example.portfolio3/com/example/portfolio3/Edge.java') diff --git a/src/com.example.portfolio3/com/example/portfolio3/Edge.java b/src/com.example.portfolio3/com/example/portfolio3/Edge.java index 7cb8d5a..065b6ae 100644 --- a/src/com.example.portfolio3/com/example/portfolio3/Edge.java +++ b/src/com.example.portfolio3/com/example/portfolio3/Edge.java @@ -3,33 +3,45 @@ package com.example.portfolio3; // origin: /// foo -public class Edge{ - - /// foo - private Vertex from,to; - - /// foo - private int weight; - - /// foo - /// @return Vertex - public Vertex from(){return from;} - - /// foo - /// @return Vertex - public Vertex to(){return to;} - - /// foo - /// @return int - public int weight(){return weight;} - - /// foo - /// @param from foo - /// @param to foo - /// @param w foo - Edge(final Vertex from, final Vertex to, final int w){this.from=from; this.to=to; weight=w;} - - /// foo - /// @return String - public String toString(){return from.name()+" - "+weight+" -> "+to.name(); } +public class Edge { + + /// foo + private Vertex from, to; + + /// foo + private int weight; + + /// foo + /// @return Vertex + public Vertex from() { + return from; + } + + /// foo + /// @return Vertex + public Vertex to() { + return to; + } + + /// foo + /// @return int + public int weight() { + return weight; + } + + /// foo + /// @param from foo + /// @param to foo + /// @param w foo + Edge(final Vertex from, final Vertex to, final int w) { + this.from = from; + this.to = to; + weight = w; + } + + /// foo + /// @return String + public String toString() { + return from.name() + " - " + weight + " -> " + to.name(); + } } -- cgit v1.2.3