as_adjacency: Put edges in correct format

as_adjacencyR Documentation

Put edges in correct format

Description

Functions to place adjacency object in a specific format.

Usage

as.adjMatrix(x, valid = FALSE, n)

as.adjList(x, valid = FALSE, n)

Arguments

x

object containing edge information

valid

logical indicating whether format is already correct

n

number of vertices

Details

If valid = TRUE then for as.adjMatrix the argument x should be a valid adjacency matrix, and no checks are performed. Similarly for as.adjList the object should be a valid adjacency list.

Functions

  • as.adjMatrix(): Convert to an adjMatrix object

  • as.adjList(): Convert to an adjList object


rje42/MixedGraphs documentation built on March 29, 2025, 11:47 p.m.