Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 25th, 2004, 02:27 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default Generate all possible graphs

Hello everybody,
can anybody give an idea on how to solve this problem....
I need an algorithm to generate all possible undirected regular graph having N nodes and degree D.
an undirected regular graph of degree D is one in which all nodes have same degree D
any help, ideas...will be appreciated
Thanks in advance.


--------------------------------------------
Mehdi.:)
__________________
_____________
<font color=\"teal\"><font size=\"1\"><b>Mehdi.
software student.</b></font id=\"size1\"></font id=\"teal\">
Reply With Quote
  #2 (permalink)  
Old September 25th, 2004, 02:44 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

I know just
N*D=2*q
(q=the numbers of edges)
so if N*D is an odd number we will not have any possible graph!

--------------------------------------------
Mehdi.:)
Reply With Quote
  #3 (permalink)  
Old October 6th, 2004, 01:30 PM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not really following your question.

You can use graph-coloring or Dijkstra SPF if you're looking for the shortest graph.

KOkon.

Reply With Quote
  #4 (permalink)  
Old October 6th, 2004, 03:28 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

I didnt want the shortest graph,
Thanks anyway.

--------------------------------------------
Mehdi.:)
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Export Data to Excel & Generate Graphs vinod_pawar1 ASP.NET 1.0 and 1.1 Professional 3 July 15th, 2006 01:03 AM
line graphs goldablasha C# 1 April 6th, 2005 02:36 AM
implementing Graphs arvindwrites Classic ASP Basics 1 September 6th, 2004 05:08 AM
dynamic graphs starlit Classic ASP Databases 1 February 11th, 2004 08:05 AM
Graphs jieli1001 ASP.NET 1.0 and 1.1 Professional 4 August 1st, 2003 06:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.