Return a list of edges, each of class containing `dg.VertexEdge`

.

Objects can be created by calls of the form `new("dg.VertexEdgeList", ...)`

.

1 2 | ```
returnEdgeList(edge.list, vertices, width = 2, color = "DarkSlateGrey", N = 3,
oriented = NA, types = NULL, edgeClasses = validEdgeClasses())
``` |

`edge.list` |
A list of vectors identifying the edges.
Each vector of |

`vertices` |
The list of |

`width` |
A single numeric with the initial |

`color` |
A single text string giving the |

`oriented` |
Logical, if TRUE then the edges are |

`types` |
A vector of text strings giving the |

`N` |
Integer, |

`edgeClasses` |
Returned value from |

A list of edges, each of class containing `dg.VertexEdge`

.

`.Data`

:Object of class

`"list"`

.

Class `"dg.EdgeList"`

, directly.
Class `"dg.list"`

, directly.
Class `"list"`

, from data part.
Class `"dg.NodeList"`

, by class `"dg.EdgeList"`

.
Class `"vector"`

, by class `"dg.EdgeList"`

.
Class `"vector"`

, by class `"dg.list"`

.
Class `"vector"`

, by class `"list"`

.

- initialize
`signature(.Object = "dg.VertexEdgeList")`

: ...

Beside the methods of the vertex list, `vertexList`

,
(except `Positions`

, `Indices`

and `Strata`

) the edge list also has the methods
`NodeTypes`

,
`NodeIndices`

,
`Widths`

,
`Widths<-`

,
`Dashes`

,
`Dashes<-`

,
`Oriented`

, and
`Oriented<-`

.

Jens Henrik Badsberg

`vertexList`

and `dg.VertexEdge-class`

.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ```
from <- c("contry", "contry", "race", "race", "sex", "sex")
to <- c( "sex", "race", "hair", "eye", "education", "age")
vertexnames <- unique(sort(c(from, to)))
vertices <- returnVertexList(vertexnames)
# from <- match(from, vertexnames)
# to <- match(to, vertexnames)
edge.list <- vector("list", length(to))
for (j in seq(along = to)) edge.list[[j]] <- c(from[j], to[j])
edges <- returnEdgeList(edge.list, vertices, color = "red", oriented = TRUE)
edges <- new("dg.VertexEdgeList", edge.list = edge.list,
vertices = vertices, color = "red", oriented = TRUE)
Names(edges)
Colors(edges)
Labels(edges)
LabelPositions(edges)
# Positions(edges)
# Strata(edges)
# Indices(edges)
str(NodeTypes(edges))
str(NodeIndices(edges))
Dashes(edges)
Widths(edges)
Oriented(edges)
Widths(edges) <- rep(1, 7)
Widths(edges) <- rep(1, 6)
Widths(edges)
asDataFrame(edges)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

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

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