Graph Maker Algorithm Python Example