Skip to content

Instantly share code, notes, and snippets.

@WorkIdea
WorkIdea / graph_coloring.py
Created March 14, 2016 22:59 — forked from eliasdorneles/graph_coloring.py
Basic implementation of graph coloring
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# INSTRUCTIONS:
#
# 1) Install graphviz (http://www.graphviz.org)
# 2) Run on terminal:
# python graph_coloring.py | dot -Tpng -o graph.png
# or, if you have imagemagick installed:
# python graph_coloring.py | dot -Tpng | display