multiGraph-class

Class "multiGraph"

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

Keywords
classes
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.

Aliases
  • multiGraph-class
  • edgeSet-class
  • edgeSetNEL-class
  • edgeSetAM-class
  • show,multiGraph-method
  • show,edgeSet-method
  • isDirected,multiGraph-method
  • isDirected,edgeSet-method
  • edgemode,edgeSet-method
  • nodes,multiGraph-method
  • nodes,edgeSetAM-method
  • numNodes,multiGraph-method
  • edges,multiGraph,missing-method
  • edges,multiGraph,character-method
  • edges,edgeSetAM,character-method
  • edges,edgeSetNEL,character-method
  • numEdges,edgeSetAM-method
  • numEdges,multiGraph-method
Documentation reproduced from package graph, version 1.50.0, License: Artistic-2.0

Community examples

Looks like there are no examples yet.