# Define example graph
graph <- ExampleTrees[[24]]
# Consider all nodes
getPathLengths(graph, root="Germline")
# Exclude nodes without an isotype annotation from step count
getPathLengths(graph, root="Germline", field="c_call", exclude=NA)
Run the code above in your browser using DataLab