For me looks simple case of applying car to cdr of each sublist before calling the BFS. As it is one debuged group of code I would leave it alone as I understnd that the result would suffice to you without the weights.
pyTony
pyMod
6,304 posts since Apr 2010
Reputation Points: 879
Solved Threads: 986
Skill Endorsements: 26
I am little rusty (about 20 years) in Lisp but in basic functions MAPCAR could be helpfull:
(MAPCAR 'CDR '((A B) (C D)))
((B) (D))
pyTony
pyMod
6,304 posts since Apr 2010
Reputation Points: 879
Solved Threads: 986
Skill Endorsements: 26
pyTony
pyMod
6,304 posts since Apr 2010
Reputation Points: 879
Solved Threads: 986
Skill Endorsements: 26