Bug fix.namespace graphing

Namespace graphing broken in cylc-6.0.0.

@matthewrmshin - please review.