Skip to content
Snippets Groups Projects
Commit 62479b7d authored by Gianluca's avatar Gianluca
Browse files

Added MST

parent 25ca23f0
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,6 @@
<list default="true" id="47e80429-8a37-4045-98c6-d9f72531884e" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Test/TestVoli.java" beforeDir="false" afterPath="$PROJECT_DIR$/Test/TestVoli.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Voli.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Voli.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../../Teoria/Grafi_Introduzione.pdf" beforeDir="false" afterPath="$PROJECT_DIR$/../../Teoria/Grafi_Introduzione.pdf" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../../Teoria/Grafi_Introduzione.xopp" beforeDir="false" afterPath="$PROJECT_DIR$/../../Teoria/Grafi_Introduzione.xopp" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -40,37 +37,37 @@
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"ASKED_ADD_EXTERNAL_FILES": "true",
"Downloaded.Files.Path.Enabled": "false",
"JUnit.TestVoli.daEliminare.executor": "Run",
"JUnit.TestVoli.executor": "Run",
"JUnit.TestVoli.merda.executor": "Run",
"JUnit.TestVoli.testElencoScaliMinimo.executor": "Run",
"JUnit.TestVoli.testPercorsoTempoMinimo.executor": "Run",
"JUnit.TestVoli.testScali.executor": "Run",
"JUnit.TestVoli.testTempoMinimo.executor": "Run",
"Repository.Attach.Annotations": "false",
"Repository.Attach.JavaDocs": "false",
"Repository.Attach.Sources": "false",
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "main",
"kotlin-language-version-configured": "true",
"last_opened_file_path": "/home/gianluca/Documents/appunti/Algoritmi_2/Laboratorio/Lab6",
"project.structure.last.edited": "Modules",
"project.structure.proportion": "0.0",
"project.structure.side.proportion": "0.2",
"settings.editor.selected.configurable": "actions.on.save"
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;ASKED_ADD_EXTERNAL_FILES&quot;: &quot;true&quot;,
&quot;Downloaded.Files.Path.Enabled&quot;: &quot;false&quot;,
&quot;JUnit.TestVoli.daEliminare.executor&quot;: &quot;Run&quot;,
&quot;JUnit.TestVoli.executor&quot;: &quot;Run&quot;,
&quot;JUnit.TestVoli.merda.executor&quot;: &quot;Run&quot;,
&quot;JUnit.TestVoli.testElencoScaliMinimo.executor&quot;: &quot;Run&quot;,
&quot;JUnit.TestVoli.testPercorsoTempoMinimo.executor&quot;: &quot;Run&quot;,
&quot;JUnit.TestVoli.testScali.executor&quot;: &quot;Run&quot;,
&quot;JUnit.TestVoli.testTempoMinimo.executor&quot;: &quot;Run&quot;,
&quot;Repository.Attach.Annotations&quot;: &quot;false&quot;,
&quot;Repository.Attach.JavaDocs&quot;: &quot;false&quot;,
&quot;Repository.Attach.Sources&quot;: &quot;false&quot;,
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;git-widget-placeholder&quot;: &quot;main&quot;,
&quot;kotlin-language-version-configured&quot;: &quot;true&quot;,
&quot;last_opened_file_path&quot;: &quot;/home/gianluca/Documents/appunti/Algoritmi_2/Laboratorio/Lab6&quot;,
&quot;project.structure.last.edited&quot;: &quot;Modules&quot;,
&quot;project.structure.proportion&quot;: &quot;0.0&quot;,
&quot;project.structure.side.proportion&quot;: &quot;0.2&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;actions.on.save&quot;
}
}]]></component>
}</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/Test" />
</key>
</component>
<component name="RunManager" selected="JUnit.TestVoli">
<component name="RunManager" selected="JUnit.TestVoli.testPercorsoTempoMinimo">
<configuration name="TestVoli" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
<module name="Lab6" />
<option name="PACKAGE_NAME" value="" />
......@@ -122,10 +119,10 @@
</configuration>
<recent_temporary>
<list>
<item itemvalue="JUnit.TestVoli.testPercorsoTempoMinimo" />
<item itemvalue="JUnit.TestVoli" />
<item itemvalue="JUnit.TestVoli.testElencoScaliMinimo" />
<item itemvalue="JUnit.TestVoli.merda" />
<item itemvalue="JUnit.TestVoli.testPercorsoTempoMinimo" />
<item itemvalue="JUnit.TestVoli.daEliminare" />
</list>
</recent_temporary>
......
......@@ -105,8 +105,14 @@ public class TestVoli {
percTempMin = testVoli.trattaVeloce(0, 1);
assertEquals(1, percTempMin.size());
assertEquals(percTempMin.getFirst(), new Edge(0, 1));
//Da sistemare, devi partire dal fondo e tenere solo quelli uguali
graph = new DirectedGraph("8;0 1 1; 1 2 1; 2 3 1; 4 3 2; 0 4 15; 0 5 0; 5 6 0; 6 7 0");
testVoli = new Voli(graph);
percTempMin = testVoli.trattaVeloce(0, 3);
System.out.println(percTempMin);
}
@Test
public void testElencoScaliMinimo() {
DirectedGraph graph = new DirectedGraph("3;0 1 3;0 2 6;1 2 1");
......
File added
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment