visualizations

Programmatic visualizations
git clone git://git.laack.co/visualizations.git
Log | Files | Refs | README

commit 47516ee486c84e802c2105ba875f0a06cb3aae3c
parent 208654435684c7d1b91860606eb88008691d35c1
Author: Andrew Laack <andrew@laack.co>
Date:   Mon, 14 Sep 2026 11:48:56 -0500

Updated rendering to be nicer

Diffstat:
Mgraph/prim.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/graph/prim.py b/graph/prim.py @@ -84,12 +84,12 @@ while True: quit() display.fill(black) - for vertex in graph: - vertex.draw_vertex(display) for edge in edge_list: edge.draw_edge(display, light_grey) for edge in mst: edge.draw_edge(display, white) + for vertex in graph: + vertex.draw_vertex(display) item = None while edge_heap: @@ -100,8 +100,8 @@ while True: if item is None: pygame.display.update() - #if len(visited_vertices) == VERTICES: - # pygame.image.save(display, "out.jpg") +# if len(visited_vertices) == VERTICES: +# pygame.image.save(display, "out.jpg") break new_vertex = item.v2 if item.v1 in visited_vertices else item.v1