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