What are effective ways to prevent blood clots post-surgery?

What are effective ways to prevent blood clots post-surgery?