It is not possible to use yEd's layout algorithms from Python. Even if it were possible, you are not allowed to do so - see section "1. LICENSE CONDITIONS" in the yEd Software License Agreement:
"The Software may not be used as part of an automated process."