n, an integer, the number of graphs in L satisfying the filter
Description
Counts the number of graphs in a list which satisfy certain restraints as given in the filter (see buildGraphFilter). Notice that the input list can be graphs in both Graph format and String format.
i1 : L = generateGraphs 5;
i2 : countGraphs(L, hashTable {"Connectivity" => 0, "NegateConnectivity" => true}) -- the number of connected graphs on five vertices
o2 = 21
See also
buildGraphFilter -- creates the appropriate filter string for use with filterGraphs and countGraphs
filterGraphs -- filters graphs in a list for given properties