dbTalk Databases Forums  

can connectby() deal with cyclic graph?

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss can connectby() deal with cyclic graph? in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Zhenchang Xing
 
Posts: n/a

Default can connectby() deal with cyclic graph? - 09-24-2004 , 12:34 PM






hi,

I am a newcomer to PostgreSQL and SQL as well. I am doing my thesis in
university. My topic is about software evolution. So I am often faced with
such questions as:

1) the supertype and/or subtype of class/interface. I read PostgreSQL's
docs and some previous mails about connectby(). I understand it can help
me answer this question. But do i have to give a specific 'start_with'?
how can I query things like "the supertype of all classes"?

2) I understand connectby() can handle hierarchy/tree structure. How
about cyclic graph? For example, i have several classes, A, B, C, D.
A uses B, B uses C, C uses D, and finally D uses A. Starting from class
A, can connectby() return me A uses B, A uses C, A uses D, and stop
when it detect D uses A?

thanks so much.
zhenchang


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.