How to detect circle in a directed graph?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: How to detect circle in a directed graph?

 
0
  #11
Jan 12th, 2006
I wonder why people think about graphics applications when they read "directed graph". Actually, it is clearly defined what that means.
Actually if you read the entire post, he used the word circle, instead of cycle.

To most intelligent people that would mean something completely different to cycle.

Isn't it possible that he could have had finished the first stage in his program, which is the algorithm you have outlined, and then has moved onto a 2d realisation, whereby there was a need to detect a circle?

:rolleyes:
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: How to detect circle in a directed graph?

 
0
  #12
Jan 12th, 2006
Originally Posted by iamthwee
Actually if you read the entire post, he used the word circle, instead of cycle.

To most intelligent people that would mean something completely different to cycle.

Isn't it possible that he could have had finished the first stage in his program, which is the algorithm you have outlined, and then has moved onto a 2d realisation, whereby there was a need to detect a circle?

:rolleyes:
What is up with your attitude? In almost every post you have some little smart remark. That person made a very nice (long) post. And if you look a few posts before, you made a typo using cycles. Leave it up to the thread creator wether the post was helpful or not and get rid of your **** poor attitude.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: How to detect circle in a directed graph?

 
0
  #13
Jan 12th, 2006
Originally Posted by server_crash
And if you look a few posts before, you made a typo using cycles.
I'm looking...but no I can't find it. :p

That person made a very nice (long) post.
Yes and I'm not debating that. He said ...

I wonder why people think about graphics applications when they read "directed graph". Actually, it is clearly defined what that means.
Personally, I take that to be an attack on my original post. And since the typo was not mine, regarding the word cycle instead of circle, I have the right to defend myself?

Leave it up to the thread creator wether the post was helpful or not and get rid of your **** poor attitude.


I would never attack you though. You helped me create an executable jar file.
:cheesy: :cheesy:
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,043
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 129
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: How to detect circle in a directed graph?

 
0
  #14
Jan 12th, 2006
Let's get back on track to the question please. I would hate to see this thread turn sour.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 2
Reputation: LupoXY is an unknown quantity at this point 
Solved Threads: 0
LupoXY LupoXY is offline Offline
Newbie Poster

Re: How to detect circle in a directed graph?

 
0
  #15
Jan 12th, 2006
Hi,

by the way DFS has linear growth ( O(n) ), meaning that it is pretty efficient.

I believe that there is no faster algorithm for your problem, in terms of efficiency.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 1
Reputation: John B. Martin is an unknown quantity at this point 
Solved Threads: 0
John B. Martin John B. Martin is offline Offline
Newbie Poster

Re: How to detect circle in a directed graph?

 
0
  #16
Apr 4th, 2009
I'd like to thank George2 for raising the question and LupoXY for the exhaustive answer. I've just encountered the same problem, and thanks to you guys I found the solution pretty fast.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC