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

multigraph

Class "multiGraph"


Description

A collection of classes to model multigraphs. These include the multiGraph class as well as classes to contain edge sets.

Objects from the Class

Objects can be created from the multiGraph class, the edgeSet class is virtual, and particular variants should be used.

Slots

These slots are for the multiGraph class.

nodes

The names of the nodes.

edgeL

A list of edge lists.

nodeData

An instance of the attrData class.

graphData

A list.

These slots are for the edgeSet class, or one of its sublcasses.

edgeData

An instance of the attrData class.

edgemode

A character vector, one of directed, or undirected.

edgeL

A list of the edges (graphNEL)

adjMat

An adjacency matrix (graphAM)

Methods

show

Print a multigraph.

isDirected

A vector indicating which of the edgeSets is directed.

nodes

Retrieve the node names

numNodes

Return the number of nodes

edges

Return either all edges, or a subset of them, depending on the arguments supplied.

numEdges

Return a vector with the number of edges, for each edge set.


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.