reduces the graph to the portion with cycles

Share:

Description

Just removing from the graph those nodes (and associated arcs) which cannot belong to a cycle because they are extreme (either without parent or without children).

Usage

1

Arguments

gn

object gn defining the graph

Value

The reduced object gn

Examples

1
2
 g4n3k("RESET"); # needed only for R checking, to be forgotten
 cycles4gn(g4n.gn7); # returns the null /gn/

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.