# Define example graph
graph <- ExampleTrees[[23]]
# Use unweighted path length and do not exclude any nodes
getMRCA(graph, path="steps", root="Germline")
# Exclude nodes without an isotype annotation and use weighted path length
getMRCA(graph, path="distance", root="Germline", field="c_call", exclude=NA)
Run the code above in your browser using DataLab