Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

[Q] Problem with combinatorica



Hi,
I want to create random strongly connected directed graphs. So I defined
the following function:
CG[n_,p_] := 
While[True,
       g := RandomGraph[n,p,Directed];
      If[ConnectedQ[g,Directed], g; Break[]] ]

And to get the list of the edges in the graph I do: ToOrderedPairs[g]

However, it doesn't work and I don't know why. Thank you for your help.
-David

-------------------------------------------------------------------------

David Konopnicki - konop@cs.technion.ac.il

-------------------------------------------------------------------------




  • Prev by Date: Re: Automatically loading package question
  • Next by Date: Re: Deleting subscripted functions with arguments.
  • Prev by thread: Re: list combinations
  • Next by thread: Re: [Q] Problem with combinatorica