Copy from https://code.google.com/p/ospf-visualiser/