| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Do Data Models Need to built on a Mathematical Concept?
Neo wrote:
>>You need to learn is that a graph is equivalent to a binary relation,
>>
>>
>
>A graph is not equivalent to a binary relation.
>A graph is composed of binary relations.
>
>
>
>>and incidentally the relational model
>>is very well suited for guess what: relations.
>>
>>
>
>Draw a hundred dots on a piece of paper and arbitrarily connect lines
>between them until it looks like a hair ball. Give each dot a name.
>Now fit that data in rectangular tables called "relations" and let me
>know if it looks very well suited for this type of application.
>
How about:
create table edges
(start_x int, start_y int,
end_x int, end_y int,
primary key(
start_x int, start_y int,
end_x int, end_y int)
insert into edges values( 1,1, 10,10 );
-- meaning that there is a conncetion between points (1,1) and (10,10)
insert into (etc...)
Lauri
>
>
Received on Sat May 03 2003 - 00:00:07 CDT
![]() |
![]() |