Graph_GUI - michaeleliyahu/OOP GitHub Wiki

The class's purpose is to create the graph. we used in Jframe class.

List of functions:

Window, initGUI, paint, actionPerformed

Examples:

Sample graph:

Vertices:

1, 2, 3, 4, 5

edges: (source , destination , weight)

(1,2,5) , (2,3,10) , (3,4,9) , (4,5,3) , (1,3,3) , (3,5,10) , (2,3,1)

The result will be:

graph

Save option- save the file

save-option

Load option- load a file

load-option

test1

test1111

test2

test222222

shortestPathDist function - Find Shortest path

aaaaaaaaaa

lastOne

shortestPath function - draw the Shortest path

559595959595

lastOne

result:

resultttttttt

IsConnected function - checking if the graph Is connected

isconnecccc

TSP function

TSP

STSPPPPPPPPPPPP

stop

result:

finaltsp

⚠️ **GitHub.com Fallback** ⚠️