ends: Incident vertices of some graph edges

View source: R/interface.R

endsR Documentation

Incident vertices of some graph edges

Description

Incident vertices of some graph edges

Usage

ends(graph, es, names = TRUE)

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.

Value

A two column matrix of vertex names or vertex ids.

See Also

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

Examples

g <- make_ring(5)
ends(g, E(g))

igraph/rigraph documentation built on May 19, 2024, 6:19 a.m.