adjList: Get adjacency list of edges

View source: R/Edges.R

adjListR Documentation

Get adjacency list of edges

Description

Get adjacency list of edges

Usage

adjList(edges, n, directed = FALSE, transpose = FALSE)

revAdjList(object)

symAdjList(object, unq = TRUE)

Arguments

edges

list or matrix giving edges in the form of an eList, adjMatrix or edgeMatrix

n

total number of vertices (defaults to maximum value)

directed

logical: if TRUE edges are assumed directed

transpose

logical: if TRUE we consider children instead of parents

unq

logical: should values be made unique and sorted?

Details

Stores adjacencies by one of their vertices. E.g. directed edges are stored indexed by the child vertex, undirected by both neighbours.

Functions

  • revAdjList(): Get reverse directions for edges

  • symAdjList(): Make adjList symmetric


rje42/MixedGraphs documentation built on March 20, 2024, 8:09 a.m.