Corrected graph and local vertex traversal strategy. Tested automatic multi query