Graph Permutations of Order n
Hi list, I'm attempting to create all graphs of order n, isomorphic graphs and all. Basically, with vertices V and Edges E, permutate through all possible variations. Does anyone on this list know of a simple way to do this with the boost graph library or, can point to some location that may help. thanks
A graph of order n has up to k=n(n-1)/2 possible edges so you could count from 0 to 2^k and add/remove edges as you go according to which bits in your counting variable are set. Hope that's clear. John. Brian Stadler wrote:
Hi list,
I'm attempting to create all graphs of order n, isomorphic graphs and all. Basically, with vertices V and Edges E, permutate through all possible variations. Does anyone on this list know of a simple way to do this with the boost graph library or, can point to some location that may help.
thanks
------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Brian Stadler
-
John Reid