ends: Incident vertices of some graph edges

Description Usage Arguments Value See Also Examples

View source: R/interface.R

Description

Incident vertices of some graph edges

Usage

1
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_edges(), incident(), is_directed(), neighbors(), tail_of()

Examples

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

Example output

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

     [,1] [,2]
[1,]    1    2
[2,]    2    3
[3,]    3    4
[4,]    4    5
[5,]    1    5

igraph documentation built on Jan. 5, 2022, 1:09 a.m.

Related to ends in igraph...