def METHOD_NAME(self, graph_connector: LibraryGraph, exclude_vertices: List[Dict[str, Any]], unknown_vertices: List[Dict[str, Any]]) -> None:
    if isinstance(graph_connector, Graph):
        select_kwargs = {}
        if self.resource_types:
            select_kwargs = {"resource_type_in": self.resource_types}
        self.vertices_under_resource_types = [
            data for data in graph_connector.vs.select(**select_kwargs)["attr"]
        ]
        self.vertices_under_connected_resources_types = [
            data for data in graph_connector.vs.select(resource_type_in=self.connected_resources_types)["attr"]
        ]
    else:
        self.vertices_under_resource_types = [
            v for _, v in graph_connector.nodes(data=True) if self.resource_type_pred(v, self.resource_types)
        ]
        self.vertices_under_connected_resources_types = [
            v for _, v in graph_connector.nodes(data=True) if self.resource_type_pred(v, self.connected_resources_types)
        ]
    self.excluded_vertices = [
        v
        for v in itertools.chain(self.vertices_under_resource_types, self.vertices_under_connected_resources_types)
        if v in exclude_vertices
    ]
    self.unknown_vertices = [
        v
        for v in itertools.chain(self.vertices_under_resource_types, self.vertices_under_connected_resources_types)
        if v in unknown_vertices
    ]