Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

edges

Graph Edges


Description

Extracts edge information from the input graph.

Usage

edges(x)

Arguments

x

the input graph, of any type.

Value

a data frame with the following variables:

  • v name of the start node.

  • w name of the end node. For symmetric edges (bidirected and undirected), the order of start and end node is arbitrary.

  • e type of edge. Can be one of "->", "<->" and "--".

  • x X coordinate for a control point. If this is not NA, then the edge is drawn as an xspline through the start point, this control point, and the end point. This is especially important for cases where there is more than one edge between two variables (for instance, both a directed and a bidirected edge).

  • y Y coordinate for a control point.

Examples

## Which kinds of edges are used in the Shrier example?
levels( edges( getExample("Shrier") )$e )

dagitty

Graphical Analysis of Structural Causal Models

v0.3-1
GPL-2
Authors
Johannes Textor, Benito van der Zander, Ankur Ankan
Initial release
2021-01-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.