def METHOD_NAME(self):
    if self.graph_spec is not None:
        roi = self.graph_spec.roi
        if self.graph_spec.directed is not None:
            assert self.graph_spec.directed == self.graph_provider.directed
    else:
        roi = None
    spec = GraphSpec(roi=roi, directed=self.graph_provider.directed)
    self.provides(self.graph, spec)