From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Graph not hierarchical? Date: Fri, 14 Feb 2014 20:58:05 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113450c27207d804f26917b4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEVSF-0007cq-7x for emacs-orgmode@gnu.org; Fri, 14 Feb 2014 21:58:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEVSB-0004PP-IE for emacs-orgmode@gnu.org; Fri, 14 Feb 2014 21:58:11 -0500 Received: from mail-pb0-x231.google.com ([2607:f8b0:400e:c01::231]:57651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEVSB-0004PH-AF for emacs-orgmode@gnu.org; Fri, 14 Feb 2014 21:58:07 -0500 Received: by mail-pb0-f49.google.com with SMTP id up15so12983959pbc.8 for ; Fri, 14 Feb 2014 18:58:05 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --001a113450c27207d804f26917b4 Content-Type: text/plain; charset=ISO-8859-1 Is there any way to have org mode simulate a graph structure rather than always a (folding) hierarchy? You could say a hierarchy is a tree graph, and you could "link" or give a "jump" from one entry to another -- even in another org file. It seems plausible to call an entry a "node," and a node could have listed in its properties "edges" leading to other nodes. Has anyone else thought of this? Without knowing anything about how org mode is really coded under the hood, I'm guessing (from reading the documentation) it is simply built on the emacs folding code, i.e., there is no real underlying hierarchy algorithm(s) that you could hack into in order to make org mode more database-like (tree, graph, or otherwise). Some of these thoughts came from the simple examples given in "Land of Lisp" where a simple nodes and edges representation was given with a-lists: (defparameter *nodes* '(living-room garden attic)) (defparameter *edges* '((living-room (garden west door) (attic upstairs ladder)) (garden (living-room east door)) (attic (living-room downstairs ladder)))) The nodes are living-room, attic, and garden. And the edges are an a-list keyed on the nodes, e.g., living-room has two edges, one connected to the attic (upstairs by way of a ladder), the other to the garden (to the west by way of a door). I guess this is beginning to sound like a weak graph database hack, but as I envisioned it, each node -- an org mode entry -- could be leveraging org mode's big strengths: literate programming and loose, do-it-yourself text data storage. LB North Shore MN --001a113450c27207d804f26917b4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Is there any way to have org mode simulate a graph structu= re rather than always a (folding) hierarchy? You could say a hierarchy is a= tree graph, and you could "link" or give a "jump" from= one entry to another -- even in another org file. It seems plausible to ca= ll an entry a "node," and a node could have listed in its propert= ies "edges" leading to other nodes. Has anyone else thought of th= is?

Without knowing anything about how org mode is really coded = under the hood, I'm guessing (from reading the documentation) it is sim= ply built on the emacs folding code, i.e., there is no real underlying hier= archy algorithm(s) that you could hack into in order to make org mode more = database-like (tree, graph, or otherwise).

Some of these thoughts came from the simple examples gi= ven in "Land of Lisp" where a simple nodes and edges representati= on was given with a-lists:

(defparameter *nod= es* '(living-room garden attic))

(defparameter *edges* '((living-room (garden w= est door) =A0
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0(attic upstairs ladder))
=A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (garden (living-room east door))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (attic (living-room do= wnstairs ladder))))

The nodes are living-roo= m, attic, and garden. And the edges are an a-list keyed on the nodes, e.g.,= living-room has two edges, one connected to the attic (upstairs by way of = a ladder), the other to the garden (to the west by way of a door).

I guess this is beginning to sound like a weak graph da= tabase hack, but as I envisioned it, each node -- an org mode entry -- coul= d be leveraging org mode's big strengths: literate programming and loos= e, do-it-yourself text data storage.

LB
North Shore MN
--001a113450c27207d804f26917b4--