Given the leaf node, try to find out if a collection of nodes can be matched to a path in a graph(tree) by the bottom-up searching

matchPath(g, leaf, nodeSet)

Arguments

g

graphNEL

leaf

the name of leaf(terminal) node

nodeSet

a set of node names

Value

TRUE if path is found, FALSE if not path is matched.