FunctionalGraph

As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. >>

FunctionalGraph[f,v]takes a set and a function from to and constructs a directed graph with vertex set and edges for each in .

FunctionalGraph[{f1,f2,…},v]constructs a graph with vertex set and edge set for each . An option called Type that takes on the values Directed and Undirected is allowed. Type->Directed is the default, while Type->Undirected returns the corresponding underlying undirected graph.

FunctionalGraph[f,n]takes a nonnegative integer and a function from onto itself and produces the directed graph with vertex set and edge set for each vertex .