simplegraph (version 1.0.0)

edges: Edges of a graph

Description

Edges of a graph

Usage

edges(graph)

Value

Data frame of edge data and metadata. The tail and head vertices are in the fist two columns. The rest of the columns are metadata.

Arguments

graph

The graph

See Also

Other simple queries: adjacent_vertices, order, vertices

Examples

Run this code
bridges <- graph(list(
  "Altstadt-Loebenicht" = c(
    "Kneiphof",
    "Kneiphof",
    "Lomse"
  ),
  "Kneiphof" = c(
    "Altstadt-Loebenicht",
    "Altstadt-Loebenicht",
    "Vorstadt-Haberberg",
    "Vorstadt-Haberberg",
    "Lomse"
  ),
  "Vorstadt-Haberberg" = c(
    "Kneiphof",
    "Kneiphof",
    "Lomse"
  ),
  "Lomse" = c(
    "Altstadt-Loebenicht",
    "Kneiphof",
    "Vorstadt-Haberberg"
  )
))
edges(bridges)

Run the code above in your browser using DataCamp Workspace