def compute_edges(ast: BELAst, spec: BELSpec) -> Edges:
    """Compute edges"""

    edges = []
    if ast.bel_object.__class__.__name__ == "BELAst":
        edges.append(ast.bel_object)

    process_ast(edges, ast, spec)
    return edges
Compute edges