igraph (version 1.3.5)

ends: Incident vertices of some graph edges

Description

Incident vertices of some graph edges

Usage

ends(graph, es, names = TRUE)

Value

A two column matrix of vertex names or vertex ids.

Arguments

graph

The input graph

es

The sequence of edges to query

names

Whether to return vertex names or numeric vertex ids. By default vertex names are used.

See Also

Other structural queries: [.igraph(), [[.igraph(), adjacent_vertices(), are_adjacent(), get.edge.ids(), gorder(), gsize(), head_of(), incident_edges(), incident(), is_directed(), neighbors(), tail_of()

Examples

Run this code
g <- make_ring(5)
ends(g, E(g))

Run the code above in your browser using DataLab