Implement type conversion. The result of func must be new graph of appropriate class
Implement type conversion. The result of func must be new graph of appropriate class