numOutEdges {classGraph}R Documentation

For each Node of a Directed Graph give the Number Outgoing Edges

Description

In a directed or undirected graph, for each node count the number of edges “leaving” that nodes.

Usage

numOutEdges(g)

Arguments

g an R object of class graph (from package graph).

Value

an integer vector the same length as nodes(g) giving the number of edges that ``go out'' from each node.

Author(s)

Martin Maechler

See Also

leaves; further edgeL on which this function is built.

Examples






[Package classGraph version 0.7-0 Index]