Fixed problem where DAO function could crash with an empty node list.
Added a function that can fetch the edges for multiple vertices at the
same time, increasing efficiency.