Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Consistent creation of graph
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pierre De Wilde  
View profile  
 More options Jul 31 2011, 1:27 am
From: Pierre De Wilde <pierredewi...@gmail.com>
Date: Sun, 31 Jul 2011 07:27:05 +0200
Local: Sun, Jul 31 2011 1:27 am
Subject: [Blueprints] Consistent creation of graph

Hi,

The creation of graph is not consistent across Blueprints implementations:

Neo4jGraph() create directories and graph file
OrientGraph() create directories and graph file
TinkerGraph() create graph file at shutdown() time
DexGraph() create graph file

When trying to create a TinkerGraph() in an inexistent directory:

gremlin> g = new TinkerGraph('../data/tg/tinkergraph')
==>tinkergraph[vertices:0 edges:0]
gremlin> g.loadGraphML('data/graph-example-1.xml')
==>null
gremlin> g.shutdown()
../data/tg/tinkergraph/tinkergraph.dat (No such file or directory)

Data is lost...
For consistency, directories and graph file should be created within the
constructor,
not  at shutdown() time.

When trying to create a DexGraph() in an inexistent directory:

gremlin> g = new DexGraph('../data/dex/tinkergraph')
[DEX: 3] Cannot open file

For consistency, directories and graph file should be created.

Thanks,
Pierre


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joshua Shinavier  
View profile  
 More options Jul 31 2011, 2:59 am
From: Joshua Shinavier <j...@fortytwo.net>
Date: Sun, 31 Jul 2011 14:59:06 +0800
Local: Sun, Jul 31 2011 2:59 am
Subject: Re: [Blueprints] Consistent creation of graph
+1 to always creating the graph directory if it doesn't exist.
However, I'm not sure it's necessary to create all files at
construction time.  Persistent graph DBs may write  data to disk from
startup time up to and including shutdown time, and files (e.g. index
files, string tables, etc.) may be created or deleted at any point
along the way.  So I don't think TinkerGraph should have to create a
(possibly empty) data file at construction time.  Perhaps creating the
graph directory and checking that it is writable, at shudown time,
would be reasonable?

Josh

On Sun, Jul 31, 2011 at 1:27 PM, Pierre De Wilde


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joshua Shinavier  
View profile  
 More options Jul 31 2011, 3:00 am
From: Joshua Shinavier <j...@fortytwo.net>
Date: Sun, 31 Jul 2011 15:00:21 +0800
Local: Sun, Jul 31 2011 3:00 am
Subject: Re: [Blueprints] Consistent creation of graph
On Sun, Jul 31, 2011 at 2:59 PM, Joshua Shinavier <j...@fortytwo.net> wrote:

[...]

> (possibly empty) data file at construction time.  Perhaps creating the
> graph directory and checking that it is writable, at shudown time,
> would be reasonable?

Construction time, that is.

Thanks.

Josh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pierre De Wilde  
View profile  
 More options Jul 31 2011, 3:06 am
From: Pierre De Wilde <pierredewi...@gmail.com>
Date: Sun, 31 Jul 2011 09:06:39 +0200
Local: Sun, Jul 31 2011 3:06 am
Subject: Re: [Blueprints] Consistent creation of graph

Yep, that's what I mean: create TinkerGraph directory and check if writeable
at construction time.

Pierre

Le dimanche 31 juillet 2011, Joshua Shinavier <j...@fortytwo.net> a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »