* Upgraded to JUnit5 * Enhanced the tests for multiple instances of graphs * Save/Load test now pass * Changed the hierarchy of classes: - Graph is now the main Abstract class for the graphs - GraphDirected is an Abstract class for directed graph and inherits Graph - GraphUndirected is an Abstract class for undirected graph and inherits Graph * Changed how the Weight is represented in the graphs, removing the second parameter. From now on is only int. * Updated the implementations for MatrixGraph, ListGraph and MapGraph * Implemented only one undirected graph MatrixUndGraph * Added UnionFind and one implementation: QuickFind * Added MSF visit and implemented Kruskal and Prim (no tests) * Changed all the graphic components due to the deletion of the second parameter in the Graph class
54 lines
751 B
JSON
54 lines
751 B
JSON
{
|
|
"vertices": [
|
|
"\"6\"",
|
|
"\"5\"",
|
|
"\"4\"",
|
|
"\"3\"",
|
|
"\"2\"",
|
|
"\"1\"",
|
|
"\"8\"",
|
|
"\"7\""
|
|
],
|
|
"edges": [
|
|
{
|
|
"src": "\"4\"",
|
|
"dest": "\"6\"",
|
|
"weight": 6
|
|
},
|
|
{
|
|
"src": "\"2\"",
|
|
"dest": "\"5\"",
|
|
"weight": 4
|
|
},
|
|
{
|
|
"src": "\"5\"",
|
|
"dest": "\"4\"",
|
|
"weight": 5
|
|
},
|
|
{
|
|
"src": "\"5\"",
|
|
"dest": "\"3\"",
|
|
"weight": 2
|
|
},
|
|
{
|
|
"src": "\"1\"",
|
|
"dest": "\"3\"",
|
|
"weight": 1
|
|
},
|
|
{
|
|
"src": "\"6\"",
|
|
"dest": "\"2\"",
|
|
"weight": 2
|
|
},
|
|
{
|
|
"src": "\"1\"",
|
|
"dest": "\"2\"",
|
|
"weight": 1
|
|
},
|
|
{
|
|
"src": "\"8\"",
|
|
"dest": "\"7\"",
|
|
"weight": 9
|
|
}
|
|
]
|
|
} |