def match_simple_metapath(graph, node, simple_metapath):
if <NUM_LIT:0> == len(simple_metapath):<EOL><INDENT>yield node,<EOL><DEDENT>else:<EOL><INDENT>for neighbor in graph.edges[node]:<EOL><INDENT>if graph.nodes[neighbor][FUNCTION] == simple_metapath[<NUM_LIT:0>]:<EOL><INDENT>for path in match_simple_metapath(graph, neighbor, simple_metapath[<NUM_LIT:1>:]):<EOL><INDENT>if node not in path:<EOL><INDENT>yield (node,) + path<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>
Matches a simple metapath starting at the given node

    :param pybel.BELGraph graph: A BEL graph
    :param tuple node: A BEL node
    :param list[str] simple_metapath: A list of BEL Functions
    :return: An iterable over paths from the node matching the metapath
    :rtype: iter[tuple]