glyph_mode: Glyph mode of arrowType codes

View source: R/gspace-glyph-accessors.R

glyph_modeR Documentation

Glyph mode of arrowType codes

Description

For each arrowType code, which edge ends carry a glyph, as a numeric mode.

Usage

glyph_mode(arrowType)

Arguments

arrowType

A vector of arrowType codes (integer codes or token codes; see GraphSpace).

Value

An integer vector: 0 no glyph, 1 a glyph at the end only, 2 at the start only, 3 at both ends. Note that 1 and 2 are the reverse of igraph's arrow.mode, where 1 is a backward arrow.

Examples

glyph_mode(c("-->", "<--", "<->", "---", "04|->03"))

RGraphSpace documentation built on Oct. 9, 2026, 9:07 a.m.