Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

simpleEdge-class

Class "simpleEdge".


Description

A simple class for representing edges in graphs.

Objects from the Class

Objects can be created by calls of the form new("simpleEdge", ...).

Slots

edgeType:

Object of class "character"; the type of the edge.

weight:

Object of class "numeric"; the edge weight.

directed:

Object of class "logical"; is the edge directed.

bNode:

Object of class "character"; the beginning node.

eNode:

Object of class "character"; the ending node.

Methods

No methods defined with class "simpleEdge" in the signature.

Note

All slots are length one vectors (this is not currently checked for). If the edge is not directed there is no real meaning to the concepts of beginning node or ending node and these should not be interpreted as such.

Author(s)

R. Gentleman

Examples

new("simpleEdge", bNode="A", eNode="D")

graph

graph: A package to handle graph data structures

v1.68.0
Artistic-2.0
Authors
R. Gentleman, Elizabeth Whalen, W. Huber, S. Falcon
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.