edge_indices: Return edge indices

Description Usage Arguments Details Value

View source: R/edge_indices.R

Description

Return edge indices

Usage

1
2
3
4
5
6
7
edge_indices(x)

## S3 method for class 'matrix'
edge_indices(x)

## S3 method for class 'igraph'
edge_indices(g)

Arguments

x, g

An adjacency matrix or igraph object.

Details

If the input is an adjacency matrix, the return value is a 1-D index identifying the non-zero values in the matrix. If the input is an igraph, then the return value is an igraph.es object—the output of E.

Value

Indices corresponding to existing edges.


crcox/latticize documentation built on Dec. 19, 2021, 6:19 p.m.