htr: Get all HTR nodes from a set of nodes in a graph.

Description Usage Arguments Value


Gets all vertices in a graph that are half-trek reachable from a set of nodes. WARNING: Often the half-trek reachable nodes from a vertex v are defined to not include the vertex v or its siblings. We DO NOT follow this convention, the returned set will include input nodes and their siblings.


htr(dG, bG, nodes)



a directed graph representing the directed part of the mixed graph.


an undirected graph representing the undirected part of the mixed graph.


the nodes in the graph of which to get the HTR nodes.


a sorted list of all half-trek reachable nodes.

Search within the SEMID package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.