A cycle in the wait-for graph is a necessary and sufficient condition for deadlock to exist when only a single instance is available per resource.
Conflict serializability can be tested using topologial sort of the precedence graph which can be done in polynomial time.
Testing for view serializability is much more complex than testing for conflict serializability and is proved to be NP-complete (in NP class and Np-hard).