Added 'weight' to paths (just uses number of nodes at the moment)