ENHANCED: Made traversal, walking, betweenness representation-agnostic.