Hook to get the current cluster(Digraph, Graph or Subgraph).
If it is out of the context of Cluster, it throws an exception.
Hook to get the current cluster(Digraph, Graph or Subgraph).