Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the polynomial with coefficients giving the number of nonisomorphic graphs for a given number of vertices
ResourceFunction["GraphPolynomial"][n,x] computes the polynomial in x for which the coefficient of xm is the number of nonisomorphic graphs with n vertices and m edges. | |
ResourceFunction["GraphPolynomial"][n,x,"Directed"] computes the polynomial with coefficients that count nonisomorphic directed graphs. |
Compute a graph polynomial:
In[1]:= |
Out[1]= |
A graph polynomial for a directed graph:
In[2]:= |
Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License