Longest Path:
Start with an arbitrary instance of HC.
Convert this [evidently in polynomial time] to
an instance of LP by giving every edge of the network
the length 1, by choosing the endpoint A in LP to be
an arbitrary node [e.g. the first] of the graph,
setting B to be the same node, and asking whether there is a
path of length greater than N-1, where N is the
number of nodes.
Clearly, there is such a path if and only if there is a
Hamiltonian circuit.
So HC transf LP.
Since HC is NP-complete, and LP is clearly
in NP, LP must also be NP-complete.
[If you're unhappy about A and B being the same point, choose B
to be a neighbour of A, ask for paths of length greater than
N-2, repeat for all neighbours of A.]