A visualizer for minimal spanning tree generation methods
- Generating random graphs of specified size
- Visualizing all graph edges
- Visualizing edges of minimal spanning tree and it's creation
let SIZE: Int
Points are places by a semi random polar coordinate generation system. POINT_INTERDISTANCE
changes distance between each concentric cycle of points and POLAR_DISPERSE_ANGLE
changes angle between points within the same cycle.
let POINT_INTERDISTANCE: Double { get, set }
let POLAR_DISPERSE_ANGLE: Double { get, set }
let POINT_RADIUS: Double { get, set }
Note: Distances and angles are multiplied by a random multiplier to reduce edge collisions and improve visibility.
let HEIGHT: Double { get, set }
let WIDTH: Double { get, set }
let LINE_DRAW_SPEED: { get, set }