Algorithms for the Reeb Graph and Related Concepts