withAdjMatrix: Change representation of edges

View source: R/Edges.R

withAdjMatrixR Documentation

Change representation of edges

Description

Change edge representation of (part of) graph to use adjMatrix, adjList, eList or edgeMatrix formats.

Usage

withAdjMatrix(graph, edges, sparse = FALSE, force = FALSE)

withAdjList(graph, edges, force = FALSE)

withEdgeMatrix(graph, edges, force = FALSE)

withEdgeList(graph, edges, force = FALSE)

Arguments

graph

an object of class mixedgraph

edges

character vector of edge types to change, defaults to all

sparse

logical: should sparse matrices be used?

force

logical: should edge sets be added when named?

Functions

  • withAdjList(): Change to adjList format

  • withEdgeMatrix(): Change to edgeMatrix format

  • withEdgeList(): Change to eList format


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