From 42e9ca5ec809336fc285053e83f62dd5848b4199 Mon Sep 17 00:00:00 2001 From: cmerkens Date: Fri, 5 Jul 2024 15:12:42 +0200 Subject: [PATCH] lol --- .gitignore | 1 + .idea/workspace.xml | 36 +++++++++----- OurApplication/OurLogElement.java | 2 +- graph/DirectedGraph.java | 3 ++ .../ProjektGraph/.idea/workspace.xml | 47 ++++++++++++------ .../ProjektGraph/graph/DirectedGraph.class | Bin 11205 -> 11266 bytes 6 files changed, 59 insertions(+), 30 deletions(-) diff --git a/.gitignore b/.gitignore index 6a3417b..e0d52eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /out/ +/.idea/ diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ac091b4..e60047f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,9 @@ - - \ No newline at end of file diff --git a/OurApplication/OurLogElement.java b/OurApplication/OurLogElement.java index a9590d2..4248d14 100644 --- a/OurApplication/OurLogElement.java +++ b/OurApplication/OurLogElement.java @@ -48,7 +48,6 @@ public class OurLogElement extends LogElement{ } - public OurLogElement(int step, String description, long value, Edge e){ this.step = step; this.description = description; @@ -56,6 +55,7 @@ public class OurLogElement extends LogElement{ this.edge = e; } + public OurLogElement(int step, String description, long value, visualizationElements.Graph ourGraph ){ this.step = step; this.description = description; diff --git a/graph/DirectedGraph.java b/graph/DirectedGraph.java index b04e453..67422e4 100644 --- a/graph/DirectedGraph.java +++ b/graph/DirectedGraph.java @@ -285,6 +285,9 @@ public class DirectedGraph exten // Gibt Distanz zu gefragtem Knoten zurück return distance.get(n2); } + + + public int getShortestPathAStar(MarkedVertex n1, MarkedVertex n2) { // Erstellt Hashmap um Distanz von Startnoten zu jedem Knoten auf dem Graph zu tracken diff --git a/out/production/ProjektGraph/.idea/workspace.xml b/out/production/ProjektGraph/.idea/workspace.xml index 15310ea..e60047f 100644 --- a/out/production/ProjektGraph/.idea/workspace.xml +++ b/out/production/ProjektGraph/.idea/workspace.xml @@ -4,10 +4,8 @@ - - \ No newline at end of file diff --git a/out/production/ProjektGraph/graph/DirectedGraph.class b/out/production/ProjektGraph/graph/DirectedGraph.class index 940059e34b544849c2b527408ac26dd49aed0603..1f4432a7187820d66212c71430203704f8e68b7a 100644 GIT binary patch delta 434 zcmX}n&nv@W90&0C`@w86wFApR4h~=2Oj9T=WitCAc9^y`*=#nmGQ~nNtt90}--G|a zO%YNKoLuE!P(&OYU43lr`&^!PPd&Zf@2B`d;xeUK(lDa~P)mA2tLQI%J$lU1b^Wg0 zvw98(KnKip!bTT79DtW@1UQH=hmhn5avVjOW7wt_yBtS_6F8y|C!E9ur*O+@JTio5 z&f=AG_+f|9sF+)#dQ zsvyg1hFfZ$JJbLi!U_-U36{|p;OvgpS)alB(O?S(>oQos W!TJq$6%DmmS9PbWmsvgR+WP}?989AC delta 414 zcmX|+ODn{26o%jD=Qa|hXksx!nPJK`5)x&MTa+oc7`GYYk}Q;xsSzR@o7pMfK`A2H z@eP!+_a!Vi$p384)2Y+*zDG09)7SA}VU2t$kz7+Y6-?ihg&xUVs!pO#K7uMGq-N^X zO@pF@HA182XjOtX?b4w=I<-%i()8$rUR}_yDlOfp7{CEIIE zamX~s%yP;+cP#M0GA|@DypiOCHJ8JND`V67*>aU^yIOWEl60bCHOo(w0p$}=(w_V5 z_C@*ct;k}W6K7F{Kg|eP0UM(s`{0*`jhuWgXmOU6qf!@O#VA+RbG))jLV4Ei-lD{m zZyj&hHY%{DH`&jIirAmF-_u6)uT6Q{u&0f9+K8uJ_p}?PHET8%uA(J-7C!g}vJphI