Graph app, which random links between points until not found the shortest way from first row to last.
The goal of this work is to develop a program that implements discrete modeling of an object in two-dimensional space. To achieve this goal, several tasks are being accomplished:
- Formation of the working area (grid).
- Eject elements randomly to obtain an infinite cluster.
- The first stage of parsing the grid (the removal of dangling bonds of the first kind, the folding of parallel and serial connections where possible).
- Finding the shortest path.
- The second stage of parsing the grid (dumping hanging networks).
- Calculation of network resistance. Finding the total resistance of the cluster obtained.
Technology, which used in this work: Java 8, JGraphX, Swing