def METHOD_NAME(self) -> None:
    """Check that all nodes have edges"""
    if len(self.nodes) == 1:
        return
    for node in self.nodes:
        if not self._validate_node(node):
            raise ValueError(
                f"{node.vertex_type} is not connected to any other components"
            )