Python networkx (graph library) example

Posted on Tue 06 June 2017 in misc • Tagged with python, algorithms, graph

This is just for me to look it up again later:

#!/usr/bin/env python3

"""
A small example that uses networkx and pyplot to create a DiGraph, 
draw it and compute floyd-warshall on it.
"""

import networkx as nx
import matplotlib.pyplot as plt

#https://www.debian.org/vote/2013/vote_001 …

Continue reading

Atom editor notes

Posted on Thu 11 August 2016 in tech • Tagged with editor, atom, python

Some notes on my atom editor setup. Will be expanded throughout time.

Plugins

apm install atom-runner
apm install linter
apm install linter-flake8
apm install linter-gcc

flake8

linter-flake8 needs a flake8 binary. We'll install this into a virtualenv used for atom.

mkvirtualenv atom
# make sure you're in the new virtualenv …

Continue reading