Search for paths between vertices in a symbol graph