Function rs_graph::classes::star[][src]

pub fn star<'a, G>(n: usize) -> G where
    G: Graph<'a> + Buildable

Returns a star graph with n rays.

The center node will be the first node. This is equivalent to complete_bipartite(1,n).

If G is a digraph, the source of all edges will be the center node.