mixedgraph: Construct a mixed graph

View source: R/Graphs.R

mixedgraphR Documentation

Construct a mixed graph

Description

Construct a mixed graph

Usage

mixedgraph(n, v = seq_len(n), edges = list(), vnames, vtype)

Arguments

n

integer number of vertices in graph

v

integer identifiers of vertices (length n)

edges

named list of types of edge in graph

vnames

character vector of vertex names (defaults to x1, x2, ...)

vtype

optionally, a character vector of vertex types

Details

Currently row/column names on adjacency matrices are dropped. Might be useful to change this functionality in the future if they match (or can replace) vertex names.

See Also

graphCr.


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