Macro graph::count

source ·
macro_rules! count {
    () => { ... };
    ( $x:tt $($xs:tt)* ) => { ... };
}
Expand description

Counts the number of nodes and edges of the graph

This is a recursive macro that calls itself n times where n is the depth the token tree has, hence the number of items it’s been applied to.