Skip to main content

curated data - Using GraphData to generate all directed graphs with n vertices


Using Combinatorica, it was possible to generate unlabeled (non-isomorphic) directed graphs of $|V|=n$. Here the example is for $n=4$:


Needs["Combinatorica`"]
ShowGraph /@ ListGraphs[4,Directed];

Using GraphData, I know how to generate undirected ones:


GraphData /@ GraphData[4]

What's the trick to make it generate directed ones?


Bonus point for directed and connected ones.





Comments